home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / Educationƒ / Art / Stick Animator / StickAnimator < prev   
MacBinary  |  1992-08-11  |  65.8 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
1% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Nov 30 10:19:18 1988, modified Tue Aug 11 11:23:13 1992, creator HyperCard, type HyperCard stack, 65536 bytes "StickAnimator" , at 0x10080 1642 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 53 74 69 63 6b 41 | 6e 69 6d 61 74 6f 72 00 |..StickA|nimator.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 01 00 00 00 | 00 06 6a 9f b9 c1 f6 a6 |........|..j.....|
|00000060| ad 8b e1 00 00 06 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 db f9 00 00 |........|........|
|00000080| 00 00 0e 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |....STAK|........|
|00000090| 00 00 00 0a 00 01 00 00 | 00 00 0e 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 01 00 00 00 01 | 00 00 0a bc 00 00 00 0a |........|........|
|000000b0| 00 00 5e 85 00 00 1d d6 | 00 00 00 01 00 00 0b 00 |..^.....|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 01 20 80 00 02 10 80 00 | 02 10 80 00 02 10 80 00 |. ......|........|
|000000f0| e3 f6 6f f1 00 00 00 00 | 00 00 00 00 00 00 00 00 |..o.....|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 20 80 00 00 1f 71 | 00 00 00 00 00 00 00 00 |.. ....q|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 f4 e0 00 00 0b 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 6f 70 65 6e 53 | 74 61 63 6b 0d 0d 73 65 |on openS|tack..se|
|00000690| 74 20 75 73 65 72 4c 65 | 76 65 6c 20 74 6f 20 34 |t userLe|vel to 4|
|000006a0| 20 2d 2d 20 61 75 74 68 | 6f 72 69 6e 67 20 28 62 | -- auth|oring (b|
|000006b0| 75 74 74 6f 6e 20 63 72 | 65 61 74 69 6f 6e 29 20 |utton cr|eation) |
|000006c0| 72 65 71 75 69 72 65 64 | 0d 69 66 20 74 68 65 20 |required|.if the |
|000006d0| 75 73 65 72 4c 65 76 65 | 6c 20 3c 20 34 20 74 68 |userLeve|l < 4 th|
|000006e0| 65 6e 0d 61 6e 73 77 65 | 72 20 22 59 6f 75 20 6d |en.answe|r "You m|
|000006f0| 75 73 74 20 70 65 72 6d | 69 74 20 75 73 65 72 20 |ust perm|it user |
|00000700| 6c 65 76 65 6c 20 3d 20 | 61 75 74 68 6f 72 69 6e |level = |authorin|
|00000710| 67 21 22 0d 65 78 69 74 | 20 6f 70 65 6e 53 74 61 |g!".exit| openSta|
|00000720| 63 6b 0d 65 6e 64 20 69 | 66 0d 0d 73 65 74 20 67 |ck.end i|f..set g|
|00000730| 72 69 64 20 74 6f 20 22 | 66 61 6c 73 65 22 20 2d |rid to "|false" -|
|00000740| 2d 20 67 72 69 64 20 6e | 6f 74 20 73 75 70 70 6f |- grid n|ot suppo|
|00000750| 72 74 65 64 20 62 79 20 | 74 68 69 73 20 63 6f 64 |rted by |this cod|
|00000760| 65 0d 68 69 64 65 20 74 | 6f 6f 6c 20 77 69 6e 64 |e.hide t|ool wind|
|00000770| 6f 77 0d 68 69 64 65 20 | 70 61 74 74 65 72 6e 20 |ow.hide |pattern |
|00000780| 77 69 6e 64 6f 77 0d 68 | 69 64 65 20 6d 65 73 73 |window.h|ide mess|
|00000790| 61 67 65 20 77 69 6e 64 | 6f 77 0d 0d 69 6e 69 74 |age wind|ow..init|
|000007a0| 4d 6f 64 65 20 2d 2d 20 | 49 6e 69 74 20 74 68 65 |Mode -- |Init the|
|000007b0| 20 53 74 69 63 6b 41 6e | 69 6d 61 74 6f 72 20 74 | StickAn|imator t|
|000007c0| 6f 6f 6c 62 61 72 20 28 | 62 75 74 74 6f 6e 73 29 |oolbar (|buttons)|
|000007d0| 28 67 6c 6f 62 61 6c 20 | 6d 79 4d 6f 64 65 29 0d |(global |myMode).|
|000007e0| 65 6e 64 20 6f 70 65 6e | 53 74 61 63 6b 0d 0d 0d |end open|Stack...|
|000007f0| 0d 0d 2d 2d 20 20 20 20 | 20 20 4d 4f 44 55 4c 45 |..-- | MODULE|
|00000800| 20 46 4f 52 20 42 55 54 | 54 4f 4e 53 20 54 4f 20 | FOR BUT|TONS TO |
|00000810| 53 45 4c 45 43 54 20 54 | 48 45 20 4f 50 45 52 41 |SELECT T|HE OPERA|
|00000820| 54 49 4f 4e 20 4d 4f 44 | 45 0d 0d 6f 6e 20 63 68 |TION MOD|E..on ch|
|00000830| 61 6e 67 65 4d 6f 64 65 | 20 62 75 74 74 6f 6e 4e |angeMode| buttonN|
|00000840| 61 6d 65 0d 2d 2d 20 62 | 75 74 74 6f 6e 4e 61 6d |ame.-- b|uttonNam|
|00000850| 65 20 63 61 6e 20 62 65 | 20 61 20 62 75 74 74 6f |e can be| a butto|
|00000860| 6e 4e 61 6d 65 2c 20 6f | 72 20 22 65 6d 70 74 79 |nName, o|r "empty|
|00000870| 22 0d 67 6c 6f 62 61 6c | 20 6d 79 4d 6f 64 65 0d |".global| myMode.|
|00000880| 0d 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 73 65 74 |.lock sc|reen.set|
|00000890| 20 6c 6f 63 6b 4d 65 73 | 73 61 67 65 73 20 74 6f | lockMes|sages to|
|000008a0| 20 22 74 72 75 65 22 0d | 73 65 74 20 6c 6f 63 6b | "true".|set lock|
|000008b0| 52 65 63 65 6e 74 20 74 | 6f 20 22 74 72 75 65 22 |Recent t|o "true"|
|000008c0| 0d 2d 2d 20 4f 4e 43 45 | 20 55 50 4f 4e 20 41 20 |.-- ONCE| UPON A |
|000008d0| 54 49 4d 45 20 4e 41 4d | 45 53 0d 2d 2d 22 53 68 |TIME NAM|ES.--"Sh|
|000008e0| 6f 77 2f 48 69 64 65 22 | 20 42 6c 69 6e 6b 3b 20 |ow/Hide"| Blink; |
|000008f0| 22 52 6f 74 61 74 65 22 | 3b 20 22 52 65 73 69 7a |"Rotate"|; "Resiz|
|00000900| 65 22 20 4c 65 6e 67 74 | 68 65 6e 3b 20 22 4e 65 |e" Lengt|hen; "Ne|
|00000910| 77 20 53 74 69 63 6b 22 | 20 44 72 61 77 0d 2d 2d |w Stick"| Draw.--|
|00000920| 20 22 44 65 6c 65 74 65 | 22 20 45 72 61 73 65 3b | "Delete|" Erase;|
|00000930| 20 22 42 65 6e 64 22 20 | 53 74 72 65 74 63 68 0d | "Bend" |Stretch.|
|00000940| 0d 2d 2d 20 53 65 74 20 | 66 6f 72 6d 65 72 20 62 |.-- Set |former b|
|00000950| 75 74 74 6f 6e 20 68 69 | 6c 69 74 65 73 20 6f 66 |utton hi|lites of|
|00000960| 66 2e 0d 69 66 20 6d 79 | 4d 6f 64 65 20 69 73 20 |f..if my|Mode is |
|00000970| 6e 6f 74 20 22 65 6d 70 | 74 79 22 20 74 68 65 6e |not "emp|ty" then|
|00000980| 20 2d 2d 20 61 63 74 75 | 61 6c 6c 79 20 74 68 65 | -- actu|ally the|
|00000990| 20 4e 55 4c 4c 20 6d 6f | 64 65 0d 69 66 20 6d 79 | NULL mo|de.if my|
|000009a0| 4d 6f 64 65 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |Mode is |not empt|
|000009b0| 79 20 74 68 65 6e 20 2d | 2d 20 75 6e 69 6e 69 74 |y then -|- uninit|
|000009c0| 69 61 6c 69 7a 65 64 0d | 73 65 74 20 74 68 65 20 |ialized.|set the |
|000009d0| 68 69 6c 69 74 65 20 6f | 66 20 62 6b 67 6e 64 20 |hilite o|f bkgnd |
|000009e0| 62 74 6e 20 6d 79 4d 6f | 64 65 20 74 6f 20 22 66 |btn myMo|de to "f|
|000009f0| 61 6c 73 65 22 0d 65 6e | 64 20 69 66 0d 65 6e 64 |alse".en|d if.end|
|00000a00| 20 69 66 0d 0d 69 66 20 | 62 75 74 74 6f 6e 4e 61 | if..if |buttonNa|
|00000a10| 6d 65 20 69 73 20 6e 6f | 74 20 22 65 6d 70 74 79 |me is no|t "empty|
|00000a20| 22 20 74 68 65 6e 0d 73 | 65 74 20 74 68 65 20 68 |" then.s|et the h|
|00000a30| 69 6c 69 74 65 20 6f 66 | 20 62 6b 67 6e 64 20 62 |ilite of| bkgnd b|
|00000a40| 74 6e 20 62 75 74 74 6f | 6e 4e 61 6d 65 20 74 6f |tn butto|nName to|
|00000a50| 20 22 74 72 75 65 22 0d | 65 6e 64 20 69 66 0d 0d | "true".|end if..|
|00000a60| 70 75 74 20 62 75 74 74 | 6f 6e 4e 61 6d 65 20 69 |put butt|onName i|
|00000a70| 6e 74 6f 20 6d 79 4d 6f | 64 65 0d 0d 2d 2d 20 57 |nto myMo|de..-- W|
|00000a80| 65 20 64 6f 20 6e 6f 74 | 20 63 68 61 6e 67 65 20 |e do not| change |
|00000a90| 74 68 65 20 63 75 72 73 | 6f 72 2c 20 73 69 6e 63 |the curs|or, sinc|
|00000aa0| 65 20 74 68 69 73 20 65 | 78 65 63 75 74 65 73 20 |e this e|xecutes |
|00000ab0| 71 75 69 63 6b 6c 79 2e | 0d 2d 2d 20 42 75 74 20 |quickly.|.-- But |
|00000ac0| 74 68 65 20 75 73 65 72 | 20 73 68 6f 75 6c 64 20 |the user| should |
|00000ad0| 6e 6f 74 20 64 6f 20 61 | 6e 79 74 68 69 6e 67 20 |not do a|nything |
|00000ae0| 75 6e 74 69 6c 20 74 68 | 65 20 64 69 73 6b 0d 2d |until th|e disk.-|
|00000af0| 2d 20 61 63 63 65 73 73 | 65 73 20 63 65 61 73 65 |- access|es cease|
|00000b00| 2c 20 77 68 69 63 68 20 | 72 65 61 6c 6c 79 20 74 |, which |really t|
|00000b10| 61 6b 65 73 20 74 6f 6f | 20 6c 6f 6e 67 2e 0d 75 |akes too| long..u|
|00000b20| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 65 6e 64 |nlock sc|reen.end|
|00000b30| 20 63 68 61 6e 67 65 4d | 6f 64 65 0d 0d 0d 66 75 | changeM|ode...fu|
|00000b40| 6e 63 74 69 6f 6e 20 74 | 68 65 4d 6f 64 65 0d 67 |nction t|heMode.g|
|00000b50| 6c 6f 62 61 6c 20 6d 79 | 4d 6f 64 65 0d 72 65 74 |lobal my|Mode.ret|
|00000b60| 75 72 6e 20 6d 79 4d 6f | 64 65 0d 65 6e 64 20 74 |urn myMo|de.end t|
|00000b70| 68 65 4d 6f 64 65 0d 0d | 0d 66 75 6e 63 74 69 6f |heMode..|.functio|
|00000b80| 6e 20 69 73 44 72 61 77 | 4d 6f 64 65 0d 70 75 74 |n isDraw|Mode.put|
|00000b90| 20 74 68 65 4d 6f 64 65 | 28 29 20 69 6e 74 6f 20 | theMode|() into |
|00000ba0| 6c 6f 63 61 6c 4d 6f 64 | 65 0d 69 66 20 28 6c 6f |localMod|e.if (lo|
|00000bb0| 63 61 6c 4d 6f 64 65 20 | 69 73 20 22 4c 69 6e 65 |calMode |is "Line|
|00000bc0| 22 29 20 4f 52 20 28 6c | 6f 63 61 6c 4d 6f 64 65 |") OR (l|ocalMode|
|00000bd0| 20 69 73 20 22 50 6f 6c | 79 67 6f 6e 22 29 20 74 | is "Pol|ygon") t|
|00000be0| 68 65 6e 20 72 65 74 75 | 72 6e 20 22 74 72 75 65 |hen retu|rn "true|
|00000bf0| 22 0d 65 6c 73 65 20 72 | 65 74 75 72 6e 20 22 66 |".else r|eturn "f|
|00000c00| 61 6c 73 65 22 0d 65 6e | 64 20 69 73 44 72 61 77 |alse".en|d isDraw|
|00000c10| 4d 6f 64 65 0d 0d 0d 0d | 6f 6e 20 69 6e 69 74 4d |Mode....|on initM|
|00000c20| 6f 64 65 0d 67 6c 6f 62 | 61 6c 20 6d 79 4d 6f 64 |ode.glob|al myMod|
|00000c30| 65 0d 70 75 74 20 22 65 | 6d 70 74 79 22 20 69 6e |e.put "e|mpty" in|
|00000c40| 74 6f 20 6d 79 4d 6f 64 | 65 0d 73 65 74 20 74 68 |to myMod|e.set th|
|00000c50| 65 20 68 69 6c 69 74 65 | 20 6f 66 20 62 6b 67 6e |e hilite| of bkgn|
|00000c60| 64 20 62 74 6e 20 22 4c | 69 6e 65 22 20 74 6f 20 |d btn "L|ine" to |
|00000c70| 22 66 61 6c 73 65 22 0d | 73 65 74 20 74 68 65 20 |"false".|set the |
|00000c80| 68 69 6c 69 74 65 20 6f | 66 20 62 6b 67 6e 64 20 |hilite o|f bkgnd |
|00000c90| 62 74 6e 20 22 50 6f 6c | 79 67 6f 6e 22 20 74 6f |btn "Pol|ygon" to|
|00000ca0| 20 22 66 61 6c 73 65 22 | 0d 73 65 74 20 74 68 65 | "false"|.set the|
|00000cb0| 20 68 69 6c 69 74 65 20 | 6f 66 20 62 6b 67 6e 64 | hilite |of bkgnd|
|00000cc0| 20 62 74 6e 20 22 45 72 | 61 73 65 22 20 74 6f 20 | btn "Er|ase" to |
|00000cd0| 22 66 61 6c 73 65 22 0d | 73 65 74 20 74 68 65 20 |"false".|set the |
|00000ce0| 68 69 6c 69 74 65 20 6f | 66 20 62 6b 67 6e 64 20 |hilite o|f bkgnd |
|00000cf0| 62 74 6e 20 22 53 74 72 | 65 74 63 68 22 20 74 6f |btn "Str|etch" to|
|00000d00| 20 22 66 61 6c 73 65 22 | 0d 73 65 74 20 74 68 65 | "false"|.set the|
|00000d10| 20 68 69 6c 69 74 65 20 | 6f 66 20 62 6b 67 6e 64 | hilite |of bkgnd|
|00000d20| 20 62 74 6e 20 22 44 72 | 61 67 22 20 74 6f 20 22 | btn "Dr|ag" to "|
|00000d30| 66 61 6c 73 65 22 0d 73 | 65 74 20 74 68 65 20 68 |false".s|et the h|
|00000d40| 69 6c 69 74 65 20 6f 66 | 20 62 6b 67 6e 64 20 62 |ilite of| bkgnd b|
|00000d50| 74 6e 20 22 52 65 70 61 | 69 6e 74 22 20 74 6f 20 |tn "Repa|int" to |
|00000d60| 22 66 61 6c 73 65 22 0d | 65 6e 64 20 69 6e 69 74 |"false".|end init|
|00000d70| 4d 6f 64 65 0d 00 0d 0d | 0d 0d 6f 6e 20 73 65 61 |Mode....|..on sea|
|00000d80| 72 63 68 53 63 72 69 70 | 74 20 70 61 74 74 65 72 |rchScrip|t patter|
|00000d90| 6e 2c 73 74 61 63 6b 4e | 61 6d 65 20 2d 2d 20 73 |n,stackN|ame -- s|
|00000da0| 65 61 72 63 68 20 61 6c | 6c 20 73 63 72 69 70 74 |earch al|l script|
|00000db0| 73 20 6f 66 20 61 20 73 | 74 61 63 6b 0d 73 65 74 |s of a s|tack.set|
|00000dc0| 20 6c 6f 63 6b 4d 65 73 | 73 61 67 65 73 20 74 6f | lockMes|sages to|
|00000dd0| 20 74 72 75 65 0d 69 66 | 20 73 74 61 63 6b 4e 61 | true.if| stackNa|
|00000de0| 6d 65 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |me is no|t empty |
|00000df0| 74 68 65 6e 20 67 6f 20 | 74 6f 20 73 74 61 63 6b |then go |to stack|
|00000e00| 20 73 74 61 63 6b 4e 61 | 6d 65 0d 0d 69 66 20 74 | stackNa|me..if t|
|00000e10| 68 65 20 73 63 72 69 70 | 74 20 6f 66 20 74 68 69 |he scrip|t of thi|
|00000e20| 73 20 73 74 61 63 6b 20 | 63 6f 6e 74 61 69 6e 73 |s stack |contains|
|00000e30| 20 70 61 74 74 65 72 6e | 0d 74 68 65 6e 20 65 64 | pattern|.then ed|
|00000e40| 69 74 20 73 63 72 69 70 | 74 20 6f 66 20 74 68 69 |it scrip|t of thi|
|00000e50| 73 20 73 74 61 63 6b 0d | 0d 72 65 70 65 61 74 20 |s stack.|.repeat |
|00000e60| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 74 68 |with i =| 1 to th|
|00000e70| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 6b 67 6e |e number| of bkgn|
|00000e80| 00 00 04 00 4d 41 53 54 | ff ff ff ff 00 00 00 00 |....MAST|........|
|00000e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ea0| 00 05 a8 e5 00 05 27 50 | 00 00 d4 bc 00 05 d6 d9 |......'P|........|
|00000eb0| 00 07 68 f7 00 07 97 a3 | 00 05 57 2a 00 06 65 21 |..h.....|..W*..e!|
|00000ec0| 00 06 99 90 00 05 e4 b1 | 00 06 18 20 00 05 65 9e |........|... ..e.|
|00000ed0| 00 05 99 ff 00 06 25 dd | 00 06 59 30 00 06 e7 9e |......%.|..Y0....|
|00000ee0| 00 07 1b 83 00 06 a5 10 | 00 06 d9 9b 00 07 27 0b |........|......'.|
|00000ef0| 00 07 5b 52 00 00 90 d6 | 00 00 94 72 00 07 a4 71 |..[R....|...r...q|
|00000f00| 00 07 a5 80 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 05 29 85 00 00 00 00 |........|..).....|
|00001000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 00 80 4c 49 53 54 | 00 00 1d d6 00 00 00 00 |....LIST|........|
|00001290| 00 00 00 01 00 00 08 00 | 00 00 00 0a 00 20 00 02 |........|..... ..|
|000012a0| 00 07 00 03 40 00 03 d8 | 00 00 00 0a 00 00 00 00 |....@...|........|
|000012b0| 00 00 1e 72 00 0a 00 00 | 00 00 00 00 00 00 00 00 |...r....|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 08 00 50 41 47 45 | 00 00 1e 72 00 00 00 00 |....PAGE|...r....|
|00001310| 00 00 1d d6 90 53 9c ec | 00 00 5e 85 60 00 00 00 |.....S..|..^.`...|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 13 9e 20 27 c9 a9 |........|.... '..|
|00001340| 62 63 4f 98 35 44 14 dc | 65 31 e7 0f d4 c4 c2 a8 |bcO.5D..|e1......|
|00001350| 40 0b 00 68 25 b6 84 a0 | 00 00 08 e5 20 00 00 00 |@..h%...|.... ...|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 11 b1 20 27 c9 a9 |........|.... '..|
|00001380| 62 63 4f 98 35 44 14 dc | 65 31 e7 0f d4 c4 c2 a8 |bcO.5D..|e1......|
|00001390| 40 0b 00 68 25 b6 84 a0 | 00 00 15 dd 20 27 c9 a9 |@..h%...|.... '..|
|000013a0| 62 63 4f 98 35 44 14 dc | 65 31 e7 0f d4 c4 c2 a8 |bcO.5D..|e1......|
|000013b0| 40 0b 00 68 25 b6 84 a0 | 00 00 0f 21 20 27 c9 a9 |@..h%...|...! '..|
|000013c0| 62 63 4f 98 35 44 14 dc | 65 31 e7 0f d4 c4 c2 a8 |bcO.5D..|e1......|
|000013d0| 40 0b 00 68 25 b6 84 a0 | 00 00 19 10 20 27 c9 a9 |@..h%...|.... '..|
|000013e0| 62 63 4f 98 35 44 14 dc | 65 31 e7 0f d4 c4 c2 a8 |bcO.5D..|e1......|
|000013f0| 40 0b 00 68 25 b6 84 a0 | 00 00 17 9e 20 27 c9 a9 |@..h%...|.... '..|
|00001400| 62 63 4f 98 35 44 14 dc | 65 31 e7 0f d4 c4 c2 a8 |bcO.5D..|e1......|
|00001410| 40 0b 00 68 25 b6 84 a0 | 00 00 1b 0b 20 27 c9 a9 |@..h%...|.... '..|
|00001420| 62 63 4f 98 35 44 14 dc | 65 31 e7 0f d4 c4 c2 a8 |bcO.5D..|e1......|
|00001430| 40 0b 00 68 25 b6 84 a0 | 00 00 0c f7 20 00 00 00 |@..h%...|.... ...|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 8a 60 42 4b 47 44 | 00 00 0a bc 00 00 00 00 |...`BKGD|........|
|00001b10| 00 00 09 50 40 00 00 00 | 00 00 00 0a 00 00 0a bc |...P@...|........|
|00001b20| 00 00 0a bc 00 0c 00 13 | 00 00 2d 46 00 00 00 00 |........|..-F....|
|00001b30| 00 00 02 3c 00 01 01 00 | 00 13 01 c4 00 44 01 ee |...<....|.....D..|
|00001b40| a0 00 00 00 7f 9e 00 01 | 00 00 00 0c 00 00 00 10 |........|........|
|00001b50| 41 6e 69 6d 61 74 65 00 | 00 6f 6e 20 6d 6f 75 73 |Animate.|.on mous|
|00001b60| 65 55 70 0d 69 66 20 74 | 68 65 20 6f 70 74 69 6f |eUp.if t|he optio|
|00001b70| 6e 4b 65 79 20 69 73 20 | 22 64 6f 77 6e 22 20 74 |nKey is |"down" t|
|00001b80| 68 65 6e 0d 2d 2d 20 52 | 65 70 65 61 74 65 64 20 |hen.-- R|epeated |
|00001b90| 61 6e 69 6d 61 74 69 6f | 6e 2c 20 73 74 6f 70 70 |animatio|n, stopp|
|00001ba0| 69 6e 67 20 61 74 20 6d | 6f 75 73 65 20 63 6c 69 |ing at m|ouse cli|
|00001bb0| 63 6b 0d 73 68 6f 77 20 | 63 61 72 64 73 0d 65 6c |ck.show |cards.el|
|00001bc0| 73 65 0d 2d 2d 20 4f 6e | 65 20 61 6e 69 6d 61 74 |se.-- On|e animat|
|00001bd0| 69 6f 6e 2c 20 61 6c 6c | 20 63 61 72 64 73 0d 0d |ion, all| cards..|
|00001be0| 73 65 74 20 63 75 72 73 | 6f 72 20 74 6f 20 62 75 |set curs|or to bu|
|00001bf0| 73 79 20 2d 2d 20 6e 6f | 74 20 6e 65 63 65 73 73 |sy -- no|t necess|
|00001c00| 61 72 79 2c 20 62 75 74 | 20 66 6f 72 20 63 6f 6e |ary, but| for con|
|00001c10| 73 69 73 74 65 6e 63 79 | 0d 0d 70 75 73 68 20 63 |sistency|..push c|
|00001c20| 61 72 64 0d 0d 73 65 74 | 20 6c 6f 63 6b 52 65 63 |ard..set| lockRec|
|00001c30| 65 6e 74 20 74 6f 20 22 | 74 72 75 65 22 0d 67 6f |ent to "|true".go|
|00001c40| 20 74 6f 20 63 61 72 64 | 20 31 0d 0d 2d 2d 20 49 | to card| 1..-- I|
|00001c50| 66 20 79 6f 75 20 73 68 | 6f 77 20 61 6c 6c 2c 20 |f you sh|ow all, |
|00001c60| 74 68 65 20 66 69 72 73 | 74 20 63 61 72 64 20 72 |the firs|t card r|
|00001c70| 65 70 65 61 74 73 20 61 | 74 20 74 68 65 20 65 6e |epeats a|t the en|
|00001c80| 64 2e 20 4e 6f 74 20 67 | 6f 6f 64 2e 0d 2d 2d 20 |d. Not g|ood..-- |
|00001c90| 73 65 74 20 6c 6f 63 6b | 4d 65 73 73 61 67 65 73 |set lock|Messages|
|00001ca0| 2c 20 6c 6f 63 6b 52 65 | 63 65 6e 74 20 6e 6f 74 |, lockRe|cent not|
|00001cb0| 20 6e 65 63 65 73 73 61 | 72 79 2e 0d 73 68 6f 77 | necessa|ry..show|
|00001cc0| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|00001cd0| 63 61 72 64 73 20 2d 31 | 29 20 63 61 72 64 73 0d |cards -1|) cards.|
|00001ce0| 0d 70 6f 70 20 63 61 72 | 64 20 2d 2d 21 21 20 22 |.pop car|d --!! "|
|00001cf0| 67 6f 20 62 61 63 6b 22 | 20 73 6f 6d 65 74 69 6d |go back"| sometim|
|00001d00| 65 73 20 6c 65 61 76 65 | 73 20 74 68 65 20 73 74 |es leave|s the st|
|00001d10| 61 63 6b 20 21 21 21 0d | 65 6e 64 20 69 66 0d 65 |ack !!!.|end if.e|
|00001d20| 6e 64 20 6d 6f 75 73 65 | 55 70 0d 0d 0d 6f 6e 20 |nd mouse|Up...on |
|00001d30| 6d 6f 75 73 65 44 6f 77 | 6e 0d 2d 2d 20 65 61 74 |mouseDow|n.-- eat|
|00001d40| 20 65 76 65 6e 74 2c 20 | 73 6f 20 64 6f 65 73 20 | event, |so does |
|00001d50| 6e 6f 74 20 67 6f 20 66 | 75 72 74 68 65 72 2e 0d |not go f|urther..|
|00001d60| 65 6e 64 20 6d 6f 75 73 | 65 44 6f 77 6e 00 01 1e |end mous|eDown...|
|00001d70| 00 02 01 00 00 13 00 66 | 00 45 00 8c 80 01 00 00 |.......f|.E......|
|00001d80| 14 65 00 01 00 00 00 0c | 00 00 00 10 4c 69 6e 65 |.e......|....Line|
|00001d90| 00 00 6f 6e 20 6d 6f 75 | 73 65 55 70 0d 69 66 20 |..on mou|seUp.if |
|00001da0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 61 |the numb|er of ca|
|00001db0| 72 64 73 20 3e 20 31 20 | 74 68 65 6e 0d 61 6e 73 |rds > 1 |then.ans|
|00001dc0| 77 65 72 20 22 53 6f 72 | 72 79 2c 20 6e 6f 20 6e |wer "Sor|ry, no n|
|00001dd0| 65 77 20 73 74 69 63 6b | 73 20 77 68 65 6e 20 6d |ew stick|s when m|
|00001de0| 6f 72 65 20 74 68 61 6e | 20 31 20 63 61 72 64 2e |ore than| 1 card.|
|00001df0| 22 0d 65 6c 73 65 0d 63 | 68 61 6e 67 65 4d 6f 64 |".else.c|hangeMod|
|00001e00| 65 20 74 68 65 20 73 68 | 6f 72 74 20 6e 61 6d 65 |e the sh|ort name|
|00001e10| 20 6f 66 20 6d 65 0d 63 | 68 61 6e 67 65 54 6f 6f | of me.c|hangeToo|
|00001e20| 6c 20 74 68 65 20 73 68 | 6f 72 74 20 6e 61 6d 65 |l the sh|ort name|
|00001e30| 20 6f 66 20 6d 65 0d 65 | 6e 64 20 69 66 0d 65 6e | of me.e|nd if.en|
|00001e40| 64 20 6d 6f 75 73 65 55 | 70 0d 0d 6f 6e 20 6d 6f |d mouseU|p..on mo|
|00001e50| 75 73 65 44 6f 77 6e 0d | 2d 2d 20 65 61 74 20 65 |useDown.|-- eat e|
|00001e60| 76 65 6e 74 2c 20 73 6f | 20 64 6f 65 73 20 6e 6f |vent, so| does no|
|00001e70| 74 20 67 6f 20 66 75 72 | 74 68 65 72 2e 0d 65 6e |t go fur|ther..en|
|00001e80| 64 20 6d 6f 75 73 65 44 | 6f 77 6e 00 1e e2 00 03 |d mouseD|own.....|
|00001e90| 01 00 00 13 01 94 00 44 | 01 bb a0 00 00 00 4e da |.......D|......N.|
|00001ea0| 00 01 00 00 00 0c 00 00 | 00 10 54 77 65 65 6e 00 |........|..Tween.|
|00001eb0| 00 0d 2d 2d 20 4e 4f 54 | 45 53 0d 0d 2d 2d 20 57 |..-- NOT|ES..-- W|
|00001ec0| 65 20 69 6e 74 65 72 70 | 6f 6c 61 74 65 20 66 72 |e interp|olate fr|
|00001ed0| 6f 6d 20 72 6f 6f 74 20 | 6c 65 61 66 77 61 72 64 |om root |leafward|
|00001ee0| 2e 0d 0d 2d 2d 20 57 65 | 20 63 6f 70 79 20 74 68 |...-- We| copy th|
|00001ef0| 65 20 66 69 72 73 74 20 | 63 61 72 64 2c 20 74 68 |e first |card, th|
|00001f00| 65 6e 20 6d 6f 76 65 20 | 74 68 69 6e 67 73 20 61 |en move |things a|
|00001f10| 72 6f 75 6e 64 2e 0d 2d | 2d 20 54 68 69 73 20 6d |round..-|- This m|
|00001f20| 61 69 6e 74 61 69 6e 73 | 20 62 75 74 74 6f 6e 20 |aintains| button |
|00001f30| 69 64 73 2c 20 61 6e 64 | 20 70 72 6f 62 61 62 6c |ids, and| probabl|
|00001f40| 79 20 69 73 20 66 61 73 | 74 65 72 3f 3f 0d 2d 2d |y is fas|ter??.--|
|00001f50| 20 41 20 70 6f 6f 72 20 | 61 6c 74 65 72 6e 61 74 | A poor |alternat|
|00001f60| 69 76 65 20 69 73 20 74 | 6f 20 73 74 61 72 74 20 |ive is t|o start |
|00001f70| 66 72 65 73 68 2c 20 63 | 72 65 61 74 65 20 6e 65 |fresh, c|reate ne|
|00001f80| 77 20 73 74 69 63 6b 73 | 2e 0d 0d 0d 0d 6f 6e 20 |w sticks|.....on |
|00001f90| 6d 6f 75 73 65 55 70 0d | 2d 2d 20 43 68 65 63 6b |mouseUp.|-- Check|
|00001fa0| 20 76 61 6c 69 64 69 74 | 79 2e 0d 69 66 20 74 68 | validit|y..if th|
|00001fb0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 69 73 |e number| of this|
|00001fc0| 20 63 61 72 64 20 3e 3d | 20 74 68 65 20 6e 75 6d | card >=| the num|
|00001fd0| 62 65 72 20 6f 66 20 63 | 61 72 64 73 20 74 68 65 |ber of c|ards the|
|00001fe0| 6e 0d 61 6e 73 77 65 72 | 20 22 53 6f 72 72 79 2c |n.answer| "Sorry,|
|00001ff0| 20 63 61 6e 27 74 20 74 | 77 65 65 6e 20 70 61 73 | can't t|ween pas|
|00002000| 74 20 74 68 65 20 6c 61 | 73 74 20 63 61 72 64 2e |t the la|st card.|
|00002010| 22 0d 65 78 69 74 20 6d | 6f 75 73 65 55 70 0d 65 |".exit m|ouseUp.e|
|00002020| 6e 64 20 69 66 0d 0d 73 | 65 74 20 6c 6f 63 6b 72 |nd if..s|et lockr|
|00002030| 65 63 65 6e 74 20 74 6f | 20 22 74 72 75 65 22 0d |ecent to| "true".|
|00002040| 73 65 74 20 6c 6f 63 6b | 4d 65 73 73 61 67 65 73 |set lock|Messages|
|00002050| 20 74 6f 20 22 74 72 75 | 65 22 0d 73 61 76 65 55 | to "tru|e".saveU|
|00002060| 73 65 72 50 61 69 6e 74 | 43 68 6f 69 63 65 73 0d |serPaint|Choices.|
|00002070| 0d 2d 2d 20 43 68 65 63 | 6b 20 66 6f 72 20 70 6f |.-- Chec|k for po|
|00002080| 77 65 72 20 74 77 65 65 | 6e 69 6e 67 2e 0d 69 66 |wer twee|ning..if|
|00002090| 20 74 68 65 20 4f 70 74 | 69 6f 6e 4b 65 79 20 69 | the Opt|ionKey i|
|000020a0| 73 20 64 6f 77 6e 20 74 | 68 65 6e 0d 74 77 65 65 |s down t|hen.twee|
|000020b0| 6e 53 65 76 65 6e 0d 65 | 6c 73 65 0d 6c 6f 63 6b |nSeven.e|lse.lock|
|000020c0| 20 73 63 72 65 65 6e 0d | 74 77 65 65 6e 4f 6e 65 | screen.|tweenOne|
|000020d0| 0d 75 6e 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 65 |.unlock |screen.e|
|000020e0| 6e 64 20 69 66 0d 0d 72 | 65 73 74 6f 72 65 55 73 |nd if..r|estoreUs|
|000020f0| 65 72 50 61 69 6e 74 43 | 68 6f 69 63 65 73 0d 0d |erPaintC|hoices..|
|00002100| 65 6e 64 20 6d 6f 75 73 | 65 55 70 0d 0d 0d 6f 6e |end mous|eUp...on|
|00002110| 20 74 77 65 65 6e 53 65 | 76 65 6e 0d 2d 2d 20 4d | tweenSe|ven.-- M|
|00002120| 61 6b 65 20 73 65 76 65 | 6e 20 69 6e 20 62 65 74 |ake seve|n in bet|
|00002130| 77 65 65 6e 20 63 61 72 | 64 73 20 69 6e 20 74 68 |ween car|ds in th|
|00002140| 65 20 6f 72 64 65 72 20 | 34 2c 32 2c 31 2c 33 2c |e order |4,2,1,3,|
|00002150| 36 2c 35 2c 37 0d 2d 2d | 20 4c 6f 63 6b 20 61 6e |6,5,7.--| Lock an|
|00002160| 64 20 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 20 |d unlock| screen |
|00002170| 74 6f 20 73 68 6f 77 20 | 70 72 6f 67 72 65 73 73 |to show |progress|
|00002180| 0d 2d 2d 20 52 65 61 6c | 6c 79 20 73 68 6f 75 6c |.-- Real|ly shoul|
|00002190| 64 20 6c 65 74 20 74 68 | 65 20 75 73 65 72 20 61 |d let th|e user a|
|000021a0| 62 6f 72 74 2e 20 20 46 | 6f 72 20 6e 6f 77 2c 20 |bort. F|or now, |
|000021b0| 63 6f 6d 6d 61 6e 64 20 | 70 65 72 69 6f 64 20 77 |command |period w|
|000021c0| 69 6c 6c 20 64 6f 2e 0d | 70 75 74 20 22 54 77 65 |ill do..|put "Twe|
|000021d0| 65 6e 69 6e 67 20 73 65 | 76 65 6e 20 63 61 72 64 |ening se|ven card|
|000021e0| 73 2e 20 20 48 69 74 20 | 63 6f 6d 6d 61 6e 64 2d |s. Hit |command-|
|000021f0| 70 65 72 69 6f 64 20 74 | 6f 20 61 62 6f 72 74 20 |period t|o abort |
|00002200| 63 72 75 64 65 6c 79 22 | 0d 6c 6f 63 6b 20 73 63 |crudely"|.lock sc|
|00002210| 72 65 65 6e 0d 74 77 65 | 65 6e 4f 6e 65 0d 75 6e |reen.twe|enOne.un|
|00002220| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 6c 6f 63 6b |lock scr|een.lock|
|00002230| 20 73 63 72 65 65 6e 0d | 67 6f 20 62 61 63 6b 0d | screen.|go back.|
|00002240| 74 77 65 65 6e 4f 6e 65 | 0d 75 6e 6c 6f 63 6b 20 |tweenOne|.unlock |
|00002250| 73 63 72 65 65 6e 0d 6c | 6f 63 6b 20 73 63 72 65 |screen.l|ock scre|
|00002260| 65 6e 0d 67 6f 20 62 61 | 63 6b 0d 74 77 65 65 6e |en.go ba|ck.tween|
|00002270| 4f 6e 65 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 |One.unlo|ck scree|
|00002280| 6e 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 67 6f |n.lock s|creen.go|
|00002290| 20 6e 65 78 74 0d 74 77 | 65 65 6e 4f 6e 65 0d 75 | next.tw|eenOne.u|
|000022a0| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 6c 6f 63 |nlock sc|reen.loc|
|000022b0| 6b 20 73 63 72 65 65 6e | 0d 67 6f 20 6e 65 78 74 |k screen|.go next|
|000022c0| 0d 74 77 65 65 6e 4f 6e | 65 0d 75 6e 6c 6f 63 6b |.tweenOn|e.unlock|
|000022d0| 20 73 63 72 65 65 6e 0d | 6c 6f 63 6b 20 73 63 72 | screen.|lock scr|
|000022e0| 65 65 6e 0d 67 6f 20 62 | 61 63 6b 0d 74 77 65 65 |een.go b|ack.twee|
|000022f0| 6e 4f 6e 65 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 |nOne.unl|ock scre|
|00002300| 65 6e 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 67 |en.lock |screen.g|
|00002310| 6f 20 6e 65 78 74 0d 74 | 77 65 65 6e 4f 6e 65 0d |o next.t|weenOne.|
|00002320| 75 6e 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 68 69 |unlock s|creen.hi|
|00002330| 64 65 20 6d 65 73 73 61 | 67 65 20 77 69 6e 64 6f |de messa|ge windo|
|00002340| 77 0d 65 6e 64 20 74 77 | 65 65 6e 53 65 76 65 6e |w.end tw|eenSeven|
|00002350| 0d 0d 6f 6e 20 74 77 65 | 65 6e 4f 6e 65 0d 2d 2d |..on twe|enOne.--|
|00002360| 20 54 77 65 65 6e 20 6f | 6e 65 20 63 61 72 64 0d | Tween o|ne card.|
|00002370| 67 6c 6f 62 61 6c 20 76 | 31 2c 76 32 20 2d 2d 20 |global v|1,v2 -- |
|00002380| 48 6f 6c 64 20 61 72 72 | 61 79 20 6f 66 20 76 65 |Hold arr|ay of ve|
|00002390| 63 74 6f 72 73 20 66 72 | 6f 6d 20 73 6f 75 72 63 |ctors fr|om sourc|
|000023a0| 65 20 63 61 72 64 73 20 | 31 20 61 6e 64 20 32 0d |e cards |1 and 2.|
|000023b0| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 62 |.set cur|sor to b|
|000023c0| 75 73 79 0d 63 61 70 74 | 75 72 65 53 6f 75 72 63 |usy.capt|ureSourc|
|000023d0| 65 43 61 72 64 56 65 63 | 74 6f 72 73 20 2d 2d 20 |eCardVec|tors -- |
|000023e0| 61 6e 64 20 74 68 65 20 | 62 75 74 74 6f 6e 73 20 |and the |buttons |
|000023f0| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 63 61 72 |of the f|irst car|
|00002400| 64 0d 73 65 74 20 74 68 | 65 20 63 75 72 73 6f 72 |d.set th|e cursor|
|00002410| 20 74 6f 20 62 75 73 79 | 0d 64 6f 4d 65 6e 75 20 | to busy|.doMenu |
|00002420| 22 50 61 73 74 65 20 43 | 61 72 64 22 20 2d 2d 20 |"Paste C|ard" -- |
|00002430| 77 61 6e 74 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |want the| button |
|00002440| 69 64 73 20 74 6f 20 62 | 65 20 74 68 65 20 73 61 |ids to b|e the sa|
|00002450| 6d 65 0d 0d 2d 2d 20 4c | 65 61 76 65 20 74 68 65 |me..-- L|eave the|
|00002460| 20 73 74 69 63 6b 20 74 | 72 61 63 65 73 2e 20 20 | stick t|races. |
|00002470| 52 65 64 72 61 77 20 61 | 6c 6c 20 61 74 20 6f 6e |Redraw a|ll at on|
|00002480| 63 65 2c 20 6c 61 74 65 | 72 3f 0d 0d 2d 2d 20 49 |ce, late|r?..-- I|
|00002490| 6e 74 65 72 70 6f 6c 61 | 74 65 20 74 68 65 20 72 |nterpola|te the r|
|000024a0| 6f 6f 74 20 70 6f 69 6e | 74 2c 20 6c 69 6e 65 61 |oot poin|t, linea|
|000024b0| 72 6c 79 2e 0d 70 75 74 | 20 69 6e 74 65 72 70 6f |rly..put| interpo|
|000024c0| 6c 61 74 65 50 6f 69 6e | 74 28 6c 69 6e 65 20 31 |latePoin|t(line 1|
|000024d0| 20 6f 66 20 76 31 2c 20 | 6c 69 6e 65 20 31 20 6f | of v1, |line 1 o|
|000024e0| 66 20 76 32 29 20 69 6e | 74 6f 20 6e 65 77 52 6f |f v2) in|to newRo|
|000024f0| 6f 74 50 6f 69 6e 74 0d | 73 65 74 20 74 68 65 20 |otPoint.|set the |
|00002500| 6c 6f 63 20 6f 66 20 63 | 61 72 64 20 62 75 74 74 |loc of c|ard butt|
|00002510| 6f 6e 20 22 52 6f 6f 74 | 20 42 75 74 74 6f 6e 22 |on "Root| Button"|
|00002520| 20 74 6f c2 0d 69 74 65 | 6d 20 31 20 6f 66 20 6e | to..ite|m 1 of n|
|00002530| 65 77 52 6f 6f 74 50 6f | 69 6e 74 2c 20 69 74 65 |ewRootPo|int, ite|
|00002540| 6d 20 32 20 6f 66 20 6e | 65 77 52 6f 6f 74 50 6f |m 2 of n|ewRootPo|
|00002550| 69 6e 74 0d 0d 2d 2d 20 | 49 6e 74 65 72 70 6f 6c |int..-- |Interpol|
|00002560| 61 74 65 20 74 68 65 20 | 74 72 65 65 2c 20 72 65 |ate the |tree, re|
|00002570| 63 75 72 73 69 76 65 6c | 79 2e 0d 69 6e 74 65 72 |cursivel|y..inter|
|00002580| 70 6f 6c 61 74 65 54 72 | 65 65 20 74 68 65 52 6f |polateTr|ee theRo|
|00002590| 6f 74 53 74 69 63 6b 28 | 29 2c 20 6e 65 77 52 6f |otStick(|), newRo|
|000025a0| 6f 74 50 6f 69 6e 74 0d | 0d 69 6e 69 74 47 72 61 |otPoint.|.initGra|
|000025b0| 70 68 4f 70 73 20 2d 2d | 20 41 63 74 75 61 6c 6c |phOps --| Actuall|
|000025c0| 79 20 69 73 20 72 65 64 | 75 6e 64 61 6e 74 2c 20 |y is red|undant, |
|000025d0| 62 75 74 20 66 6f 72 20 | 70 72 65 76 65 6e 74 69 |but for |preventi|
|000025e0| 6f 6e 2c 20 64 6f 20 69 | 74 2e 0d 72 65 64 72 61 |on, do i|t..redra|
|000025f0| 77 20 2d 2d 20 73 6f 20 | 66 61 72 2c 20 68 61 76 |w -- so |far, hav|
|00002600| 65 20 6a 75 73 74 20 75 | 70 64 61 74 65 64 20 74 |e just u|pdated t|
|00002610| 68 65 20 64 61 74 61 2c | 20 6e 6f 74 20 74 68 65 |he data,| not the|
|00002620| 20 67 72 61 70 68 69 63 | 73 0d 66 69 6e 69 47 72 | graphic|s.finiGr|
|00002630| 61 70 68 4f 70 73 0d 65 | 6e 64 20 74 77 65 65 6e |aphOps.e|nd tween|
|00002640| 4f 6e 65 0d 0d 6f 6e 20 | 6d 6f 75 73 65 44 6f 77 |One..on |mouseDow|
|00002650| 6e 0d 2d 2d 20 65 61 74 | 20 65 76 65 6e 74 2c 20 |n.-- eat| event, |
|00002660| 73 6f 20 64 6f 65 73 20 | 6e 6f 74 20 67 6f 20 66 |so does |not go f|
|00002670| 75 72 74 68 65 72 2e 0d | 65 6e 64 20 6d 6f 75 73 |urther..|end mous|
|00002680| 65 44 6f 77 6e 0d 0d 0d | 2d 2d 20 20 20 20 20 20 |eDown...|-- |
|00002690| 20 20 20 20 20 20 4d 4f | 44 55 4c 45 20 46 4f 52 | MO|DULE FOR|
|000026a0| 20 43 41 50 54 55 52 49 | 4e 47 20 56 45 43 54 4f | CAPTURI|NG VECTO|
|000026b0| 52 53 20 46 52 4f 4d 20 | 53 4f 55 52 43 45 20 43 |RS FROM |SOURCE C|
|000026c0| 41 52 44 53 0d 0d 2d 2d | 20 76 31 2c 20 61 6e 64 |ARDS..--| v1, and|
|000026d0| 20 76 32 2c 20 61 72 65 | 20 61 72 72 61 79 73 20 | v2, are| arrays |
|000026e0| 6f 66 20 6c 69 6e 65 73 | 2e 20 20 45 61 63 68 20 |of lines|. Each |
|000026f0| 6c 69 6e 65 20 69 73 20 | 61 20 76 65 63 74 6f 72 |line is |a vector|
|00002700| 2e 0d 2d 2d 20 21 21 21 | 21 20 54 68 65 20 6c 69 |..-- !!!|! The li|
|00002710| 6e 65 73 20 61 72 65 20 | 69 6e 64 65 78 65 64 20 |nes are |indexed |
|00002720| 62 79 20 62 75 74 74 6f | 6e 20 6e 75 6d 62 65 72 |by butto|n number|
|00002730| 2c 20 6e 6f 74 20 49 44 | 2e 0d 0d 6f 6e 20 63 61 |, not ID|...on ca|
|00002740| 70 74 75 72 65 53 6f 75 | 72 63 65 43 61 72 64 56 |ptureSou|rceCardV|
|00002750| 65 63 74 6f 72 73 0d 70 | 75 74 20 74 68 65 20 6e |ectors.p|ut the n|
|00002760| 75 6d 62 65 72 20 6f 66 | 20 63 61 72 64 20 62 74 |umber of| card bt|
|00002770| 6e 73 20 69 6e 74 6f 20 | 66 69 72 73 74 43 61 72 |ns into |firstCar|
|00002780| 64 42 75 74 74 6f 6e 73 | 0d 64 6f 4d 65 6e 75 20 |dButtons|.doMenu |
|00002790| 22 43 6f 70 79 20 43 61 | 72 64 22 0d 73 65 74 20 |"Copy Ca|rd".set |
|000027a0| 74 68 65 20 63 75 72 73 | 6f 72 20 74 6f 20 62 75 |the curs|or to bu|
|000027b0| 73 79 0d 73 61 76 65 53 | 74 69 63 6b 56 65 63 74 |sy.saveS|tickVect|
|000027c0| 6f 72 73 31 20 66 69 72 | 73 74 43 61 72 64 42 75 |ors1 fir|stCardBu|
|000027d0| 74 74 6f 6e 73 20 2d 2d | 20 53 61 76 65 20 76 65 |ttons --| Save ve|
|000027e0| 63 74 6f 72 73 20 66 6f | 72 20 66 69 72 73 74 20 |ctors fo|r first |
|000027f0| 63 61 72 64 2e 0d 67 6f | 20 6e 65 78 74 0d 73 65 |card..go| next.se|
|00002800| 74 20 74 68 65 20 63 75 | 72 73 6f 72 20 74 6f 20 |t the cu|rsor to |
|00002810| 62 75 73 79 0d 73 61 76 | 65 53 74 69 63 6b 56 65 |busy.sav|eStickVe|
|00002820| 63 74 6f 72 73 32 20 66 | 69 72 73 74 43 61 72 64 |ctors2 f|irstCard|
|00002830| 42 75 74 74 6f 6e 73 20 | 2d 2d 20 53 61 76 65 20 |Buttons |-- Save |
|00002840| 76 65 63 74 6f 72 73 20 | 66 6f 72 20 73 65 63 6f |vectors |for seco|
|00002850| 6e 64 20 63 61 72 64 2e | 0d 67 6f 20 62 61 63 6b |nd card.|.go back|
|00002860| 0d 65 6e 64 20 63 61 70 | 74 75 72 65 53 6f 75 72 |.end cap|tureSour|
|00002870| 63 65 43 61 72 64 56 65 | 63 74 6f 72 73 0d 0d 0d |ceCardVe|ctors...|
|00002880| 6f 6e 20 73 61 76 65 53 | 74 69 63 6b 56 65 63 74 |on saveS|tickVect|
|00002890| 6f 72 73 31 20 6e 75 6d | 62 65 72 4f 66 56 65 63 |ors1 num|berOfVec|
|000028a0| 74 6f 72 73 0d 2d 2d 20 | 53 61 76 65 20 74 68 65 |tors.-- |Save the|
|000028b0| 20 73 74 69 63 6b 20 76 | 65 63 74 6f 72 73 20 66 | stick v|ectors f|
|000028c0| 6f 72 20 74 68 65 20 66 | 69 72 73 74 20 63 61 72 |or the f|irst car|
|000028d0| 64 2e 0d 67 6c 6f 62 61 | 6c 20 76 31 0d 0d 70 75 |d..globa|l v1..pu|
|000028e0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 76 31 0d |t empty |into v1.|
|000028f0| 70 75 74 20 74 68 65 20 | 6c 6f 63 20 6f 66 20 63 |put the |loc of c|
|00002900| 61 72 64 20 62 75 74 74 | 6f 6e 20 31 20 69 6e 74 |ard butt|on 1 int|
|00002910| 6f 20 6c 69 6e 65 20 31 | 20 6f 66 20 76 31 20 2d |o line 1| of v1 -|
|00002920| 2d 20 72 6f 6f 74 20 69 | 73 20 73 70 65 63 69 61 |- root i|s specia|
|00002930| 6c 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 69 6e |l.repeat| with in|
|00002940| 64 65 78 20 3d 20 32 20 | 74 6f 20 6e 75 6d 62 65 |dex = 2 |to numbe|
|00002950| 72 4f 66 56 65 63 74 6f | 72 73 0d 70 75 74 20 73 |rOfVecto|rs.put s|
|00002960| 74 69 63 6b 56 65 63 74 | 6f 72 28 74 68 65 20 49 |tickVect|or(the I|
|00002970| 44 20 6f 66 20 63 61 72 | 64 20 62 74 6e 20 69 6e |D of car|d btn in|
|00002980| 64 65 78 29 20 69 6e 74 | 6f 20 6c 69 6e 65 20 69 |dex) int|o line i|
|00002990| 6e 64 65 78 20 6f 66 20 | 76 31 0d 65 6e 64 20 72 |ndex of |v1.end r|
|000029a0| 65 70 65 61 74 0d 65 6e | 64 20 73 61 76 65 53 74 |epeat.en|d saveSt|
|000029b0| 69 63 6b 56 65 63 74 6f | 72 73 31 0d 0d 6f 6e 20 |ickVecto|rs1..on |
|000029c0| 73 61 76 65 53 74 69 63 | 6b 56 65 63 74 6f 72 73 |saveStic|kVectors|
|000029d0| 32 20 6e 75 6d 62 65 72 | 4f 66 56 65 63 74 6f 72 |2 number|OfVector|
|000029e0| 73 0d 2d 2d 20 53 61 76 | 65 20 74 68 65 20 73 74 |s.-- Sav|e the st|
|000029f0| 69 63 6b 20 76 65 63 74 | 6f 72 73 20 66 6f 72 20 |ick vect|ors for |
|00002a00| 74 68 65 20 73 65 63 6f | 6e 64 20 63 61 72 64 2e |the seco|nd card.|
|00002a10| 0d 67 6c 6f 62 61 6c 20 | 76 32 0d 0d 70 75 74 20 |.global |v2..put |
|00002a20| 65 6d 70 74 79 20 69 6e | 74 6f 20 76 32 0d 70 75 |empty in|to v2.pu|
|00002a30| 74 20 74 68 65 20 6c 6f | 63 20 6f 66 20 63 61 72 |t the lo|c of car|
|00002a40| 64 20 62 75 74 74 6f 6e | 20 31 20 69 6e 74 6f 20 |d button| 1 into |
|00002a50| 6c 69 6e 65 20 31 20 6f | 66 20 76 32 20 2d 2d 20 |line 1 o|f v2 -- |
|00002a60| 72 6f 6f 74 20 69 73 20 | 73 70 65 63 69 61 6c 0d |root is |special.|
|00002a70| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 6e 64 65 |repeat w|ith inde|
|00002a80| 78 20 3d 20 32 20 74 6f | 20 6e 75 6d 62 65 72 4f |x = 2 to| numberO|
|00002a90| 66 56 65 63 74 6f 72 73 | 0d 70 75 74 20 73 74 69 |fVectors|.put sti|
|00002aa0| 63 6b 56 65 63 74 6f 72 | 28 74 68 65 20 49 44 20 |ckVector|(the ID |
|00002ab0| 6f 66 20 63 61 72 64 20 | 62 74 6e 20 69 6e 64 65 |of card |btn inde|
|00002ac0| 78 29 20 69 6e 74 6f 20 | 6c 69 6e 65 20 69 6e 64 |x) into |line ind|
|00002ad0| 65 78 20 6f 66 20 76 32 | 0d 65 6e 64 20 72 65 70 |ex of v2|.end rep|
|00002ae0| 65 61 74 0d 65 6e 64 20 | 73 61 76 65 53 74 69 63 |eat.end |saveStic|
|00002af0| 6b 56 65 63 74 6f 72 73 | 32 0d 0d 0d 0d 0d 2d 2d |kVectors|2.....--|
|00002b00| 20 20 20 20 20 20 20 20 | 4d 4f 44 55 4c 45 20 46 | |MODULE F|
|00002b10| 4f 52 20 49 4e 54 45 52 | 50 4f 4c 41 54 49 4e 47 |OR INTER|POLATING|
|00002b20| 20 54 52 45 45 53 0d 0d | 6f 6e 20 69 6e 74 65 72 | TREES..|on inter|
|00002b30| 70 6f 6c 61 74 65 54 72 | 65 65 20 74 68 65 53 75 |polateTr|ee theSu|
|00002b40| 62 72 52 6f 6f 74 53 74 | 69 63 6b 2c 20 6e 65 77 |brRootSt|ick, new|
|00002b50| 50 6f 73 0d 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |Pos..set| cursor |
|00002b60| 74 6f 20 62 75 73 79 0d | 0d 2d 2d 20 49 6e 74 65 |to busy.|.-- Inte|
|00002b70| 72 70 6f 6c 61 74 65 20 | 74 68 65 20 73 75 62 72 |rpolate |the subr|
|00002b80| 6f 6f 74 20 53 74 69 63 | 6b 2e 20 20 54 61 69 6c |oot Stic|k. Tail|
|00002b90| 20 61 74 20 74 68 65 20 | 67 69 76 65 6e 20 70 6f | at the |given po|
|00002ba0| 73 69 74 69 6f 6e 2e 0d | 70 75 74 20 69 6e 74 65 |sition..|put inte|
|00002bb0| 72 70 6f 6c 61 74 65 53 | 74 69 63 6b 20 28 74 68 |rpolateS|tick (th|
|00002bc0| 65 53 75 62 72 52 6f 6f | 74 53 74 69 63 6b 2c 20 |eSubrRoo|tStick, |
|00002bd0| 6e 65 77 50 6f 73 29 20 | 69 6e 74 6f 20 6e 65 77 |newPos) |into new|
|00002be0| 48 65 61 64 43 6f 6f 72 | 64 73 0d 0d 2d 2d 20 49 |HeadCoor|ds..-- I|
|00002bf0| 6e 74 65 72 70 6f 6c 61 | 74 65 20 74 68 65 20 64 |nterpola|te the d|
|00002c00| 65 73 63 65 6e 64 61 6e | 74 20 74 72 65 65 73 20 |escendan|t trees |
|00002c10| 6f 66 20 74 68 65 20 72 | 6f 6f 74 53 74 69 63 6b |of the r|ootStick|
|00002c20| 2e 0d 70 75 74 20 73 74 | 69 63 6b 56 65 63 74 6f |..put st|ickVecto|
|00002c30| 72 28 74 68 65 53 75 62 | 72 52 6f 6f 74 53 74 69 |r(theSub|rRootSti|
|00002c40| 63 6b 29 20 69 6e 74 6f | 20 6c 6f 63 61 6c 4e 61 |ck) into| localNa|
|00002c50| 6d 65 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |me.repea|t with i|
|00002c60| 6e 64 65 78 20 3d 20 66 | 69 72 73 74 44 65 73 63 |ndex = f|irstDesc|
|00002c70| 49 74 65 6d 28 29 20 74 | 6f 20 74 68 65 20 6e 75 |Item() t|o the nu|
|00002c80| 6d 62 65 72 20 6f 66 20 | 69 74 65 6d 73 20 69 6e |mber of |items in|
|00002c90| 20 6c 6f 63 61 6c 4e 61 | 6d 65 0d 67 65 74 20 69 | localNa|me.get i|
|00002ca0| 74 65 6d 20 69 6e 64 65 | 78 20 6f 66 20 6c 6f 63 |tem inde|x of loc|
|00002cb0| 61 6c 4e 61 6d 65 0d 69 | 66 20 69 74 20 69 73 20 |alName.i|f it is |
|00002cc0| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 69 |not empt|y then.i|
|00002cd0| 6e 74 65 72 70 6f 6c 61 | 74 65 54 72 65 65 20 69 |nterpola|teTree i|
|00002ce0| 74 2c 20 6e 65 77 48 65 | 61 64 43 6f 6f 72 64 73 |t, newHe|adCoords|
|00002cf0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00002d00| 61 74 0d 65 6e 64 20 69 | 6e 74 65 72 70 6f 6c 61 |at.end i|nterpola|
|00002d10| 74 65 54 72 65 65 0d 0d | 0d 0d 0d 0d 66 75 6e 63 |teTree..|....func|
|00002d20| 74 69 6f 6e 20 69 6e 74 | 65 72 70 6f 6c 61 74 65 |tion int|erpolate|
|00002d30| 53 74 69 63 6b 20 74 68 | 65 53 74 69 63 6b 2c 20 |Stick th|eStick, |
|00002d40| 74 61 69 6c 50 6f 69 6e | 74 0d 2d 2d 20 52 65 74 |tailPoin|t.-- Ret|
|00002d50| 75 72 6e 73 20 74 68 65 | 20 6e 65 77 20 68 65 61 |urns the| new hea|
|00002d60| 64 20 63 6f 6f 72 64 73 | 2e 0d 2d 2d 20 21 21 21 |d coords|..-- !!!|
|00002d70| 20 74 68 65 53 74 69 63 | 6b 20 69 73 20 74 68 65 | theStic|k is the|
|00002d80| 20 64 65 73 69 67 6e 61 | 74 6f 72 20 28 74 68 65 | designa|tor (the|
|00002d90| 20 49 44 2c 20 6e 6f 74 | 20 74 68 65 20 6e 75 6d | ID, not| the num|
|00002da0| 62 65 72 29 0d 2d 2d 20 | 74 61 69 6c 50 6f 69 6e |ber).-- |tailPoin|
|00002db0| 74 20 69 73 20 74 68 65 | 20 64 65 73 69 72 65 64 |t is the| desired|
|00002dc0| 20 73 74 61 72 74 69 6e | 67 20 70 6f 69 6e 74 20 | startin|g point |
|00002dd0| 66 6f 72 20 74 68 65 20 | 69 6e 74 65 72 70 6f 6c |for the |interpol|
|00002de0| 61 74 65 64 20 73 74 69 | 63 6b 0d 0d 67 6c 6f 62 |ated sti|ck..glob|
|00002df0| 61 6c 20 76 31 2c 20 76 | 32 0d 0d 2d 2d 20 54 75 |al v1, v|2..-- Tu|
|00002e00| 72 6e 20 64 65 73 69 67 | 6e 61 74 6f 72 20 69 6e |rn desig|nator in|
|00002e10| 74 6f 20 62 75 74 74 6f | 6e 20 6e 75 6d 62 65 72 |to butto|n number|
|00002e20| 0d 70 75 74 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |.put the| number |
|00002e30| 6f 66 20 63 61 72 64 20 | 62 75 74 74 6f 6e 20 49 |of card |button I|
|00002e40| 44 20 74 68 65 53 74 69 | 63 6b 20 69 6e 74 6f 20 |D theSti|ck into |
|00002e50| 73 74 69 63 6b 4e 75 6d | 62 65 72 0d 0d 70 75 74 |stickNum|ber..put|
|00002e60| 20 69 74 65 6d 20 31 20 | 6f 66 20 74 61 69 6c 50 | item 1 |of tailP|
|00002e70| 6f 69 6e 74 20 69 6e 74 | 6f 20 73 74 61 72 74 58 |oint int|o startX|
|00002e80| 0d 70 75 74 20 69 74 65 | 6d 20 32 20 6f 66 20 74 |.put ite|m 2 of t|
|00002e90| 61 69 6c 50 6f 69 6e 74 | 20 69 6e 74 6f 20 73 74 |ailPoint| into st|
|00002ea0| 61 72 74 59 0d 70 75 74 | 20 6c 69 6e 65 20 73 74 |artY.put| line st|
|00002eb0| 69 63 6b 4e 75 6d 62 65 | 72 20 6f 66 20 76 31 20 |ickNumbe|r of v1 |
|00002ec0| 69 6e 74 6f 20 76 65 63 | 74 6f 72 4f 6e 46 69 72 |into vec|torOnFir|
|00002ed0| 73 74 43 61 72 64 0d 70 | 75 74 20 6c 69 6e 65 20 |stCard.p|ut line |
|00002ee0| 73 74 69 63 6b 4e 75 6d | 62 65 72 20 6f 66 20 76 |stickNum|ber of v|
|00002ef0| 32 20 69 6e 74 6f 20 76 | 65 63 74 6f 72 4f 6e 53 |2 into v|ectorOnS|
|00002f00| 65 63 6f 6e 64 43 61 72 | 64 0d 70 75 74 20 69 74 |econdCar|d.put it|
|00002f10| 65 6d 20 31 20 74 6f 20 | 32 20 6f 66 20 76 65 63 |em 1 to |2 of vec|
|00002f20| 74 6f 72 4f 6e 46 69 72 | 73 74 43 61 72 64 20 69 |torOnFir|stCard i|
|00002f30| 6e 74 6f 20 73 74 61 72 | 74 50 6f 69 6e 74 4f 66 |nto star|tPointOf|
|00002f40| 56 65 63 74 6f 72 31 0d | 70 75 74 20 69 74 65 6d |Vector1.|put item|
|00002f50| 20 31 20 74 6f 20 32 20 | 6f 66 20 76 65 63 74 6f | 1 to 2 |of vecto|
|00002f60| 72 4f 6e 53 65 63 6f 6e | 64 43 61 72 64 20 69 6e |rOnSecon|dCard in|
|00002f70| 74 6f 20 73 74 61 72 74 | 50 6f 69 6e 74 4f 66 56 |to start|PointOfV|
|00002f80| 65 63 74 6f 72 32 0d 70 | 75 74 20 69 74 65 6d 20 |ector2.p|ut item |
|00002f90| 33 20 74 6f 20 34 20 6f | 66 20 76 65 63 74 6f 72 |3 to 4 o|f vector|
|00002fa0| 4f 6e 46 69 72 73 74 43 | 61 72 64 20 69 6e 74 6f |OnFirstC|ard into|
|00002fb0| 20 65 6e 64 50 6f 69 6e | 74 4f 66 56 65 63 74 6f | endPoin|tOfVecto|
|00002fc0| 72 31 0d 70 75 74 20 69 | 74 65 6d 20 33 20 74 6f |r1.put i|tem 3 to|
|00002fd0| 20 34 20 6f 66 20 76 65 | 63 74 6f 72 4f 6e 53 65 | 4 of ve|ctorOnSe|
|00002fe0| 63 6f 6e 64 43 61 72 64 | 20 69 6e 74 6f 20 65 6e |condCard| into en|
|00002ff0| 64 50 6f 69 6e 74 4f 66 | 56 65 63 74 6f 72 32 0d |dPointOf|Vector2.|
|00003000| 0d 2d 2d 20 4c 69 6e 65 | 61 72 6c 79 20 69 6e 74 |.-- Line|arly int|
|00003010| 65 72 70 6f 6c 61 74 65 | 20 6c 65 6e 67 74 68 2e |erpolate| length.|
|00003020| 0d 70 75 74 20 6d 65 64 | 69 61 6e 20 28 c2 0d 6c |.put med|ian (..l|
|00003030| 65 6e 67 74 68 4f 66 56 | 65 63 74 6f 72 28 76 65 |engthOfV|ector(ve|
|00003040| 63 74 6f 72 4f 6e 46 69 | 72 73 74 43 61 72 64 29 |ctorOnFi|rstCard)|
|00003050| 2c 6c 65 6e 67 74 68 4f | 66 56 65 63 74 6f 72 28 |,lengthO|fVector(|
|00003060| 76 65 63 74 6f 72 4f 6e | 53 65 63 6f 6e 64 43 61 |vectorOn|SecondCa|
|00003070| 72 64 29 c2 0d 29 20 69 | 6e 74 6f 20 69 6e 74 65 |rd)..) i|nto inte|
|00003080| 72 70 6f 6c 61 74 65 64 | 4c 65 6e 67 74 68 0d 0d |rpolated|Length..|
|00003090| 2d 2d 20 46 69 6e 64 20 | 74 68 65 20 65 6e 64 20 |-- Find |the end |
|000030a0| 70 6f 69 6e 74 73 20 6f | 66 20 74 68 65 20 74 77 |points o|f the tw|
|000030b0| 6f 20 76 65 63 74 6f 72 | 73 20 69 66 20 74 68 65 |o vector|s if the|
|000030c0| 79 20 61 72 65 20 74 72 | 61 6e 73 6c 61 74 65 64 |y are tr|anslated|
|000030d0| 0d 2d 2d 20 73 6f 20 74 | 68 65 79 20 73 74 61 72 |.-- so t|hey star|
|000030e0| 74 65 64 20 61 74 20 74 | 68 65 20 74 61 69 6c 70 |ted at t|he tailp|
|000030f0| 6f 69 6e 74 2e 0d 70 75 | 74 20 20 74 72 61 6e 73 |oint..pu|t trans|
|00003100| 6c 61 74 65 28 20 65 6e | 64 50 6f 69 6e 74 4f 66 |late( en|dPointOf|
|00003110| 56 65 63 74 6f 72 32 2c | c2 0d 64 65 6c 74 61 42 |Vector2,|..deltaB|
|00003120| 65 74 77 65 65 6e 50 6f | 69 6e 74 73 28 73 74 61 |etweenPo|ints(sta|
|00003130| 72 74 50 6f 69 6e 74 4f | 66 56 65 63 74 6f 72 32 |rtPointO|fVector2|
|00003140| 2c 74 61 69 6c 50 6f 69 | 6e 74 29 29 20 69 6e 74 |,tailPoi|nt)) int|
|00003150| 6f 20 65 6e 64 32 0d 70 | 75 74 20 20 74 72 61 6e |o end2.p|ut tran|
|00003160| 73 6c 61 74 65 28 20 65 | 6e 64 50 6f 69 6e 74 4f |slate( e|ndPointO|
|00003170| 66 56 65 63 74 6f 72 31 | 2c c2 0d 64 65 6c 74 61 |fVector1|,..delta|
|00003180| 42 65 74 77 65 65 6e 50 | 6f 69 6e 74 73 28 73 74 |BetweenP|oints(st|
|00003190| 61 72 74 50 6f 69 6e 74 | 4f 66 56 65 63 74 6f 72 |artPoint|OfVector|
|000031a0| 31 2c 74 61 69 6c 50 6f | 69 6e 74 29 29 20 69 6e |1,tailPo|int)) in|
|000031b0| 74 6f 20 65 6e 64 31 0d | 0d 2d 2d 20 49 6e 74 65 |to end1.|.-- Inte|
|000031c0| 72 70 6f 6c 61 74 65 20 | 62 65 74 77 65 65 6e 20 |rpolate |between |
|000031d0| 74 68 6f 73 65 20 74 77 | 6f 2e 0d 70 75 74 20 69 |those tw|o..put i|
|000031e0| 6e 74 65 72 70 6f 6c 61 | 74 65 50 6f 69 6e 74 28 |nterpola|tePoint(|
|000031f0| 65 6e 64 31 2c 20 65 6e | 64 32 29 20 69 6e 74 6f |end1, en|d2) into|
|00003200| 20 6d 69 64 70 6f 69 6e | 74 0d 0d 2d 2d 20 46 69 | midpoin|t..-- Fi|
|00003210| 6e 64 20 74 68 65 20 65 | 6e 64 70 6f 69 6e 74 20 |nd the e|ndpoint |
|00003220| 6f 66 20 61 20 6c 69 6e | 65 20 74 68 61 74 20 73 |of a lin|e that s|
|00003230| 74 61 72 74 73 20 61 74 | 20 74 61 69 6c 70 6f 69 |tarts at| tailpoi|
|00003240| 6e 74 0d 2d 2d 20 61 6e | 64 20 74 68 61 74 20 67 |nt.-- an|d that g|
|00003250| 6f 65 73 20 74 68 72 6f | 75 67 68 20 6d 69 64 70 |oes thro|ugh midp|
|00003260| 6f 69 6e 74 2c 20 61 6e | 64 20 74 68 61 74 20 68 |oint, an|d that h|
|00003270| 61 73 20 6c 65 6e 67 74 | 68 20 69 6e 74 65 72 70 |as lengt|h interp|
|00003280| 6f 6c 61 74 65 64 4c 65 | 6e 67 74 68 0d 0d 70 75 |olatedLe|ngth..pu|
|00003290| 74 20 65 6e 64 50 6f 69 | 6e 74 4f 66 4c 69 6e 65 |t endPoi|ntOfLine|
|000032a0| 54 68 72 75 28 74 61 69 | 6c 50 6f 69 6e 74 2c 20 |Thru(tai|lPoint, |
|000032b0| 6d 69 64 70 6f 69 6e 74 | 2c 20 69 6e 74 65 72 70 |midpoint|, interp|
|000032c0| 6f 6c 61 74 65 64 4c 65 | 6e 67 74 68 29 c2 0d 69 |olatedLe|ngth)..i|
|000032d0| 6e 74 6f 20 69 6e 74 65 | 72 70 6f 6c 61 74 65 64 |nto inte|rpolated|
|000032e0| 45 6e 64 50 6f 69 6e 74 | 0d 0d 70 75 74 20 69 74 |EndPoint|..put it|
|000032f0| 65 6d 20 31 20 6f 66 20 | 69 6e 74 65 72 70 6f 6c |em 1 of |interpol|
|00003300| 61 74 65 64 45 6e 64 50 | 6f 69 6e 74 20 69 6e 74 |atedEndP|oint int|
|00003310| 6f 20 65 6e 64 58 0d 70 | 75 74 20 69 74 65 6d 20 |o endX.p|ut item |
|00003320| 32 20 6f 66 20 69 6e 74 | 65 72 70 6f 6c 61 74 65 |2 of int|erpolate|
|00003330| 64 45 6e 64 50 6f 69 6e | 74 20 69 6e 74 6f 20 65 |dEndPoin|t into e|
|00003340| 6e 64 59 0d 0d 73 65 74 | 53 74 69 63 6b 43 6f 6f |ndY..set|StickCoo|
|00003350| 72 64 73 20 74 68 65 53 | 74 69 63 6b 2c 20 73 74 |rds theS|tick, st|
|00003360| 61 72 74 58 2c 20 73 74 | 61 72 74 59 2c 20 65 6e |artX, st|artY, en|
|00003370| 64 58 2c 20 65 6e 64 59 | 0d 73 65 74 20 74 68 65 |dX, endY|.set the|
|00003380| 20 6c 6f 63 20 6f 66 20 | 63 61 72 64 20 62 75 74 | loc of |card but|
|00003390| 74 6f 6e 20 49 44 20 74 | 68 65 53 74 69 63 6b 20 |ton ID t|heStick |
|000033a0| 74 6f 20 65 6e 64 58 2c | 20 65 6e 64 59 0d 2d 2d |to endX,| endY.--|
|000033b0| 20 72 65 74 72 61 63 65 | 20 69 6e 20 61 20 42 41 | retrace| in a BA|
|000033c0| 54 43 48 20 69 6e 73 74 | 65 61 64 20 6f 66 20 3a |TCH inst|ead of :|
|000033d0| 20 74 72 61 63 65 53 74 | 69 63 6b 20 74 68 65 53 | traceSt|ick theS|
|000033e0| 74 69 63 6b 0d 0d 2d 2d | 20 4e 65 77 6c 79 20 63 |tick..--| Newly c|
|000033f0| 72 65 61 74 65 64 20 73 | 74 69 63 6b 20 72 65 74 |reated s|tick ret|
|00003400| 61 69 6e 73 20 74 68 65 | 20 74 6f 6f 6c 2c 20 74 |ains the| tool, t|
|00003410| 6f 6f 6c 20 73 69 7a 65 | 2c 20 61 6e 64 20 70 61 |ool size|, and pa|
|00003420| 74 74 65 72 6e 0d 2d 2d | 20 6f 66 20 74 68 65 20 |ttern.--| of the |
|00003430| 70 72 65 63 65 64 69 6e | 67 20 73 74 69 63 6b 2e |precedin|g stick.|
|00003440| 0d 0d 72 65 74 75 72 6e | 20 28 65 6e 64 58 20 26 |..return| (endX &|
|00003450| 20 22 2c 22 20 26 20 65 | 6e 64 59 29 0d 65 6e 64 | "," & e|ndY).end|
|00003460| 20 69 6e 74 65 72 70 6f | 6c 61 74 65 53 74 69 63 | interpo|lateStic|
|00003470| 6b 0d 0d 0d 0d 0d 2d 2d | 20 20 20 20 20 20 20 20 |k.....--| |
|00003480| 20 20 56 45 43 54 4f 52 | 20 46 55 4e 43 54 49 4f | VECTOR| FUNCTIO|
|00003490| 4e 53 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 6c 65 6e |NS..func|tion len|
|000034a0| 67 74 68 4f 66 56 65 63 | 74 6f 72 20 76 65 63 74 |gthOfVec|tor vect|
|000034b0| 6f 72 0d 72 65 74 75 72 | 6e 20 28 20 73 71 72 74 |or.retur|n ( sqrt|
|000034c0| 20 28 c2 0d 28 69 74 65 | 6d 20 34 20 6f 66 20 76 | (..(ite|m 4 of v|
|000034d0| 65 63 74 6f 72 20 2d 20 | 69 74 65 6d 20 32 20 6f |ector - |item 2 o|
|000034e0| 66 20 76 65 63 74 6f 72 | 29 20 5e 20 32 20 2b 20 |f vector|) ^ 2 + |
|000034f0| c2 0d 64 65 6c 74 61 58 | 28 76 65 63 74 6f 72 29 |..deltaX|(vector)|
|00003500| 20 5e 20 32 20 29 29 0d | 65 6e 64 20 6c 65 6e 67 | ^ 2 )).|end leng|
|00003510| 74 68 4f 66 56 65 63 74 | 6f 72 0d 0d 66 75 6e 63 |thOfVect|or..func|
|00003520| 74 69 6f 6e 20 64 65 6c | 74 61 58 20 76 65 63 74 |tion del|taX vect|
|00003530| 6f 72 0d 72 65 74 75 72 | 6e 20 28 69 74 65 6d 20 |or.retur|n (item |
|00003540| 33 20 6f 66 20 76 65 63 | 74 6f 72 20 2d 20 69 74 |3 of vec|tor - it|
|00003550| 65 6d 20 31 20 6f 66 20 | 76 65 63 74 6f 72 29 0d |em 1 of |vector).|
|00003560| 65 6e 64 20 64 65 6c 74 | 61 58 0d 0d 66 75 6e 63 |end delt|aX..func|
|00003570| 74 69 6f 6e 20 64 65 6c | 74 61 42 65 74 77 65 65 |tion del|taBetwee|
|00003580| 6e 50 6f 69 6e 74 73 20 | 70 6f 69 6e 74 31 2c 20 |nPoints |point1, |
|00003590| 70 6f 69 6e 74 32 0d 2d | 2d 20 52 65 74 75 72 6e |point2.-|- Return|
|000035a0| 20 74 68 65 20 76 65 63 | 74 6f 72 20 62 65 74 77 | the vec|tor betw|
|000035b0| 65 65 6e 20 74 77 6f 20 | 70 6f 69 6e 74 73 20 28 |een two |points (|
|000035c0| 76 65 63 74 6f 72 20 73 | 75 62 74 72 61 63 74 69 |vector s|ubtracti|
|000035d0| 6f 6e 29 0d 70 75 74 20 | 69 74 65 6d 20 31 20 6f |on).put |item 1 o|
|000035e0| 66 20 70 6f 69 6e 74 32 | 20 2d 20 69 74 65 6d 20 |f point2| - item |
|000035f0| 31 20 6f 66 20 70 6f 69 | 6e 74 31 20 69 6e 74 6f |1 of poi|nt1 into|
|00003600| 20 72 65 73 75 6c 74 0d | 70 75 74 20 69 74 65 6d | result.|put item|
|00003610| 20 32 20 6f 66 20 70 6f | 69 6e 74 32 20 2d 20 69 | 2 of po|int2 - i|
|00003620| 74 65 6d 20 32 20 6f 66 | 20 70 6f 69 6e 74 31 20 |tem 2 of| point1 |
|00003630| 69 6e 74 6f 20 69 74 65 | 6d 20 32 20 6f 66 20 72 |into ite|m 2 of r|
|00003640| 65 73 75 6c 74 0d 72 65 | 74 75 72 6e 20 72 65 73 |esult.re|turn res|
|00003650| 75 6c 74 0d 65 6e 64 20 | 64 65 6c 74 61 42 65 74 |ult.end |deltaBet|
|00003660| 77 65 65 6e 50 6f 69 6e | 74 73 0d 0d 66 75 6e 63 |weenPoin|ts..func|
|00003670| 74 69 6f 6e 20 74 72 61 | 6e 73 6c 61 74 65 20 70 |tion tra|nslate p|
|00003680| 6f 69 6e 74 31 2c 20 64 | 65 6c 74 61 0d 2d 2d 20 |oint1, d|elta.-- |
|00003690| 54 72 61 6e 73 6c 61 74 | 65 20 61 20 70 6f 69 6e |Translat|e a poin|
|000036a0| 74 20 62 79 20 61 20 76 | 65 63 74 6f 72 20 28 76 |t by a v|ector (v|
|000036b0| 65 63 74 6f 72 20 61 64 | 64 69 74 69 6f 6e 29 0d |ector ad|dition).|
|000036c0| 70 75 74 20 70 6f 69 6e | 74 31 20 69 6e 74 6f 20 |put poin|t1 into |
|000036d0| 72 65 73 75 6c 74 0d 61 | 64 64 20 69 74 65 6d 20 |result.a|dd item |
|000036e0| 31 20 6f 66 20 64 65 6c | 74 61 20 74 6f 20 69 74 |1 of del|ta to it|
|000036f0| 65 6d 20 31 20 6f 66 20 | 72 65 73 75 6c 74 0d 61 |em 1 of |result.a|
|00003700| 64 64 20 69 74 65 6d 20 | 32 20 6f 66 20 64 65 6c |dd item |2 of del|
|00003710| 74 61 20 74 6f 20 69 74 | 65 6d 20 32 20 6f 66 20 |ta to it|em 2 of |
|00003720| 72 65 73 75 6c 74 0d 72 | 65 74 75 72 6e 20 72 65 |result.r|eturn re|
|00003730| 73 75 6c 74 0d 65 6e 64 | 20 74 72 61 6e 73 6c 61 |sult.end| transla|
|00003740| 74 65 0d 0d 0d 66 75 6e | 63 74 69 6f 6e 20 69 6e |te...fun|ction in|
|00003750| 74 65 72 70 6f 6c 61 74 | 65 50 6f 69 6e 74 20 70 |terpolat|ePoint p|
|00003760| 31 2c 20 70 32 20 20 2d | 2d 20 76 65 63 74 6f 72 |1, p2 -|- vector|
|00003770| 73 0d 2d 2d 20 49 6e 74 | 65 72 70 6f 6c 61 74 65 |s.-- Int|erpolate|
|00003780| 20 74 68 65 20 66 69 72 | 73 74 20 70 6f 69 6e 74 | the fir|st point|
|00003790| 20 69 6e 20 61 20 76 65 | 63 74 6f 72 2e 0d 2d 2d | in a ve|ctor..--|
|000037a0| 20 52 65 74 75 72 6e 20 | 74 68 65 20 69 6e 74 65 | Return |the inte|
|000037b0| 72 70 6f 6c 61 74 65 64 | 20 70 6f 69 6e 74 2e 0d |rpolated| point..|
|000037c0| 0d 73 65 74 20 74 68 65 | 20 63 75 72 73 6f 72 20 |.set the| cursor |
|000037d0| 74 6f 20 62 75 73 79 0d | 70 75 74 20 6d 65 64 69 |to busy.|put medi|
|000037e0| 61 6e 28 69 74 65 6d 20 | 31 20 6f 66 20 70 31 2c |an(item |1 of p1,|
|000037f0| 20 69 74 65 6d 20 31 20 | 6f 66 20 70 32 29 20 69 | item 1 |of p2) i|
|00003800| 6e 74 6f 20 69 74 65 6d | 20 31 20 6f 66 20 72 65 |nto item| 1 of re|
|00003810| 73 75 6c 74 43 6f 6f 72 | 64 0d 70 75 74 20 6d 65 |sultCoor|d.put me|
|00003820| 64 69 61 6e 28 69 74 65 | 6d 20 32 20 6f 66 20 70 |dian(ite|m 2 of p|
|00003830| 31 2c 20 69 74 65 6d 20 | 32 20 6f 66 20 70 32 29 |1, item |2 of p2)|
|00003840| 20 69 6e 74 6f 20 69 74 | 65 6d 20 32 20 6f 66 20 | into it|em 2 of |
|00003850| 72 65 73 75 6c 74 43 6f | 6f 72 64 0d 72 65 74 75 |resultCo|ord.retu|
|00003860| 72 6e 20 72 65 73 75 6c | 74 43 6f 6f 72 64 0d 65 |rn resul|tCoord.e|
|00003870| 6e 64 20 69 6e 74 65 72 | 70 6f 6c 61 74 65 50 6f |nd inter|polatePo|
|00003880| 69 6e 74 0d 0d 66 75 6e | 63 74 69 6f 6e 20 6d 65 |int..fun|ction me|
|00003890| 64 69 61 6e 20 6e 31 2c | 20 6e 32 0d 2d 2d 20 54 |dian n1,| n2.-- T|
|000038a0| 68 69 73 20 77 6f 72 6b | 73 20 66 6f 72 20 69 6e |his work|s for in|
|000038b0| 74 65 67 65 72 73 2c 20 | 69 6e 63 6c 75 64 69 6e |tegers, |includin|
|000038c0| 67 20 6e 65 67 61 74 69 | 76 65 73 2e 0d 69 66 20 |g negati|ves..if |
|000038d0| 6e 32 20 3e 20 6e 31 20 | 74 68 65 6e 20 72 65 74 |n2 > n1 |then ret|
|000038e0| 75 72 6e 20 72 6f 75 6e | 64 28 28 6e 32 20 2d 20 |urn roun|d((n2 - |
|000038f0| 6e 31 29 2f 32 20 2b 20 | 6e 31 29 0d 65 6c 73 65 |n1)/2 + |n1).else|
|00003900| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|00003910| 72 6e 20 72 6f 75 6e 64 | 28 28 6e 31 20 2d 20 6e |rn round|((n1 - n|
|00003920| 32 29 2f 32 20 2b 20 6e | 32 29 0d 65 6e 64 20 6d |2)/2 + n|2).end m|
|00003930| 65 64 69 61 6e 0d 0d 0d | 0d 66 75 6e 63 74 69 6f |edian...|.functio|
|00003940| 6e 20 65 6e 64 50 6f 69 | 6e 74 4f 66 4c 69 6e 65 |n endPoi|ntOfLine|
|00003950| 54 68 72 75 20 73 74 61 | 72 74 70 6f 69 6e 74 2c |Thru sta|rtpoint,|
|00003960| 20 74 68 72 75 70 6f 69 | 6e 74 2c 20 64 65 73 69 | thrupoi|nt, desi|
|00003970| 72 65 64 4c 65 6e 67 74 | 68 0d 2d 2d 20 49 66 20 |redLengt|h.-- If |
|00003980| 64 65 73 69 72 65 64 20 | 6c 65 6e 67 74 68 20 69 |desired |length i|
|00003990| 73 20 7a 65 72 6f 2c 20 | 74 68 65 6e 20 67 65 74 |s zero, |then get|
|000039a0| 20 61 20 73 74 72 61 6e | 67 65 20 72 65 73 75 6c | a stran|ge resul|
|000039b0| 74 2e 0d 70 75 74 20 73 | 74 61 72 74 70 6f 69 6e |t..put s|tartpoin|
|000039c0| 74 20 69 6e 74 6f 20 6c | 6f 63 61 6c 56 65 63 74 |t into l|ocalVect|
|000039d0| 6f 72 0d 70 75 74 20 69 | 74 65 6d 20 31 20 6f 66 |or.put i|tem 1 of|
|000039e0| 20 74 68 72 75 70 6f 69 | 6e 74 20 69 6e 74 6f 20 | thrupoi|nt into |
|000039f0| 69 74 65 6d 20 33 20 6f | 66 20 6c 6f 63 61 6c 56 |item 3 o|f localV|
|00003a00| 65 63 74 6f 72 0d 70 75 | 74 20 69 74 65 6d 20 32 |ector.pu|t item 2|
|00003a10| 20 6f 66 20 74 68 72 75 | 70 6f 69 6e 74 20 69 6e | of thru|point in|
|00003a20| 74 6f 20 69 74 65 6d 20 | 34 20 6f 66 20 6c 6f 63 |to item |4 of loc|
|00003a30| 61 6c 56 65 63 74 6f 72 | 0d 70 75 74 20 6c 65 6e |alVector|.put len|
|00003a40| 67 74 68 4f 66 56 65 63 | 74 6f 72 28 6c 6f 63 61 |gthOfVec|tor(loca|
|00003a50| 6c 56 65 63 74 6f 72 29 | 20 69 6e 74 6f 20 6c 65 |lVector)| into le|
|00003a60| 6e 67 74 68 4f 66 44 65 | 6c 74 61 0d 69 66 20 6c |ngthOfDe|lta.if l|
|00003a70| 65 6e 67 74 68 4f 66 44 | 65 6c 74 61 20 3d 20 30 |engthOfD|elta = 0|
|00003a80| 20 74 68 65 6e 20 70 75 | 74 20 31 20 69 6e 74 6f | then pu|t 1 into|
|00003a90| 20 6c 65 6e 67 74 68 4f | 66 44 65 6c 74 61 20 2d | lengthO|fDelta -|
|00003aa0| 2d 20 21 21 21 20 44 69 | 76 69 64 65 20 62 79 20 |- !!! Di|vide by |
|00003ab0| 30 0d 70 75 74 20 64 65 | 73 69 72 65 64 4c 65 6e |0.put de|siredLen|
|00003ac0| 67 74 68 20 2f 20 6c 65 | 6e 67 74 68 4f 66 44 65 |gth / le|ngthOfDe|
|00003ad0| 6c 74 61 20 20 69 6e 74 | 6f 20 6d 75 6c 74 69 70 |lta int|o multip|
|00003ae0| 6c 69 65 72 0d 2d 2d 70 | 75 74 20 64 65 6c 74 61 |lier.--p|ut delta|
|00003af0| 42 65 74 77 65 65 6e 50 | 6f 69 6e 74 73 28 73 74 |BetweenP|oints(st|
|00003b00| 61 72 74 70 6f 69 6e 74 | 2c 20 74 68 72 75 70 6f |artpoint|, thrupo|
|00003b10| 69 6e 74 29 20 69 6e 74 | 6f 20 6c 6f 63 61 6c 44 |int) int|o localD|
|00003b20| 65 6c 74 61 0d 72 65 74 | 75 72 6e 20 65 6e 64 50 |elta.ret|urn endP|
|00003b30| 6f 69 6e 74 4f 66 76 65 | 63 74 6f 72 4d 75 6c 74 |ointOfve|ctorMult|
|00003b40| 69 70 6c 79 28 6c 6f 63 | 61 6c 56 65 63 74 6f 72 |iply(loc|alVector|
|00003b50| 2c 20 6d 75 6c 74 69 70 | 6c 69 65 72 29 0d 65 6e |, multip|lier).en|
|00003b60| 64 20 65 6e 64 50 6f 69 | 6e 74 4f 66 4c 69 6e 65 |d endPoi|ntOfLine|
|00003b70| 54 68 72 75 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 65 |Thru..fu|nction e|
|00003b80| 6e 64 50 6f 69 6e 74 4f | 66 56 65 63 74 6f 72 4d |ndPointO|fVectorM|
|00003b90| 75 6c 74 69 70 6c 79 20 | 76 65 63 74 6f 72 2c 20 |ultiply |vector, |
|00003ba0| 73 63 61 6c 61 72 0d 70 | 75 74 20 64 65 6c 74 61 |scalar.p|ut delta|
|00003bb0| 42 65 74 77 65 65 6e 50 | 6f 69 6e 74 73 28 69 74 |BetweenP|oints(it|
|00003bc0| 65 6d 20 31 20 74 6f 20 | 32 20 6f 66 20 76 65 63 |em 1 to |2 of vec|
|00003bd0| 74 6f 72 2c 20 69 74 65 | 6d 20 33 20 74 6f 20 34 |tor, ite|m 3 to 4|
|00003be0| 20 6f 66 20 76 65 63 74 | 6f 72 29 20 c2 0d 69 6e | of vect|or) ..in|
|00003bf0| 74 6f 20 64 65 6c 74 61 | 56 65 63 74 6f 72 20 2d |to delta|Vector -|
|00003c00| 2d 20 64 65 6c 74 61 20 | 76 65 63 74 6f 72 20 69 |- delta |vector i|
|00003c10| 73 20 6a 75 73 74 20 61 | 20 70 6f 69 6e 74 0d 70 |s just a| point.p|
|00003c20| 75 74 20 72 6f 75 6e 64 | 28 69 74 65 6d 20 31 20 |ut round|(item 1 |
|00003c30| 6f 66 20 64 65 6c 74 61 | 56 65 63 74 6f 72 20 2a |of delta|Vector *|
|00003c40| 20 73 63 61 6c 61 72 29 | 20 69 6e 74 6f 20 69 74 | scalar)| into it|
|00003c50| 65 6d 20 31 20 6f 66 20 | 64 65 6c 74 61 56 65 63 |em 1 of |deltaVec|
|00003c60| 74 6f 72 0d 70 75 74 20 | 72 6f 75 6e 64 28 69 74 |tor.put |round(it|
|00003c70| 65 6d 20 32 20 6f 66 20 | 64 65 6c 74 61 56 65 63 |em 2 of |deltaVec|
|00003c80| 74 6f 72 20 2a 20 73 63 | 61 6c 61 72 29 20 69 6e |tor * sc|alar) in|
|00003c90| 74 6f 20 69 74 65 6d 20 | 32 20 6f 66 20 64 65 6c |to item |2 of del|
|00003ca0| 74 61 56 65 63 74 6f 72 | 0d 0d 61 64 64 20 69 74 |taVector|..add it|
|00003cb0| 65 6d 20 31 20 6f 66 20 | 64 65 6c 74 61 56 65 63 |em 1 of |deltaVec|
|00003cc0| 74 6f 72 20 74 6f 20 69 | 74 65 6d 20 31 20 6f 66 |tor to i|tem 1 of|
|00003cd0| 20 76 65 63 74 6f 72 0d | 61 64 64 20 69 74 65 6d | vector.|add item|
|00003ce0| 20 32 20 6f 66 20 64 65 | 6c 74 61 56 65 63 74 6f | 2 of de|ltaVecto|
|00003cf0| 72 20 74 6f 20 69 74 65 | 6d 20 32 20 6f 66 20 76 |r to ite|m 2 of v|
|00003d00| 65 63 74 6f 72 0d 0d 72 | 65 74 75 72 6e 20 76 65 |ector..r|eturn ve|
|00003d10| 63 74 6f 72 20 2d 2d 20 | 4f 6e 6c 79 20 74 68 65 |ctor -- |Only the|
|00003d20| 20 66 69 72 73 74 20 70 | 6f 69 6e 74 20 6f 66 20 | first p|oint of |
|00003d30| 76 65 63 74 6f 72 20 69 | 73 20 74 68 65 20 72 65 |vector i|s the re|
|00003d40| 73 75 6c 74 20 70 6f 69 | 6e 74 2e 0d 65 6e 64 20 |sult poi|nt..end |
|00003d50| 65 6e 64 50 6f 69 6e 74 | 4f 66 56 65 63 74 6f 72 |endPoint|OfVector|
|00003d60| 4d 75 6c 74 69 70 6c 79 | 0d 0d 0d 0d 00 00 00 9e |Multiply|........|
|00003d70| 00 04 01 00 00 13 00 ea | 00 44 01 12 c0 01 00 00 |........|.D......|
|00003d80| 78 b5 00 01 00 00 00 0c | 00 00 00 10 44 72 61 67 |x.......|....Drag|
|00003d90| 00 00 6f 6e 20 6d 6f 75 | 73 65 55 70 0d 63 68 61 |..on mou|seUp.cha|
|00003da0| 6e 67 65 4d 6f 64 65 20 | 74 68 65 20 73 68 6f 72 |ngeMode |the shor|
|00003db0| 74 20 6e 61 6d 65 20 6f | 66 20 6d 65 0d 65 6e 64 |t name o|f me.end|
|00003dc0| 20 6d 6f 75 73 65 55 70 | 0d 0d 6f 6e 20 6d 6f 75 | mouseUp|..on mou|
|00003dd0| 73 65 44 6f 77 6e 0d 2d | 2d 20 65 61 74 20 65 76 |seDown.-|- eat ev|
|00003de0| 65 6e 74 2c 20 73 6f 20 | 64 6f 65 73 20 6e 6f 74 |ent, so |does not|
|00003df0| 20 67 6f 20 66 75 72 74 | 68 65 72 2e 0d 65 6e 64 | go furt|her..end|
|00003e00| 20 6d 6f 75 73 65 44 6f | 77 6e 0d 00 00 90 00 07 | mouseDo|wn......|
|00003e10| 01 00 00 13 01 49 00 44 | 01 6a 20 00 00 00 03 86 |.....I.D|.j .....|
|00003e20| 00 01 00 00 00 0c 00 00 | 00 10 4e 65 77 20 42 75 |........|..New Bu|
|00003e30| 74 74 6f 6e 00 00 6f 6e | 20 6d 6f 75 73 65 55 70 |tton..on| mouseUp|
|00003e40| 0d 67 6f 20 70 72 65 76 | 69 6f 75 73 0d 65 6e 64 |.go prev|ious.end|
|00003e50| 20 6d 6f 75 73 65 55 70 | 0d 0d 6f 6e 20 6d 6f 75 | mouseUp|..on mou|
|00003e60| 73 65 44 6f 77 6e 0d 2d | 2d 20 65 61 74 20 65 76 |seDown.-|- eat ev|
|00003e70| 65 6e 74 2c 20 73 6f 20 | 64 6f 65 73 20 6e 6f 74 |ent, so |does not|
|00003e80| 20 67 6f 20 66 75 72 74 | 68 65 72 2e 0d 65 6e 64 | go furt|her..end|
|00003e90| 20 6d 6f 75 73 65 44 6f | 77 6e 00 00 00 8c 00 08 | mouseDo|wn......|
|00003ea0| 01 00 00 13 01 69 00 44 | 01 89 20 00 00 00 67 39 |.....i.D|.. ...g9|
|00003eb0| 00 01 00 00 00 0c 00 00 | 00 10 4e 65 77 20 42 75 |........|..New Bu|
|00003ec0| 74 74 6f 6e 00 00 6f 6e | 20 6d 6f 75 73 65 55 70 |tton..on| mouseUp|
|00003ed0| 0d 67 6f 20 6e 65 78 74 | 0d 65 6e 64 20 6d 6f 75 |.go next|.end mou|
|00003ee0| 73 65 55 70 0d 0d 0d 6f | 6e 20 6d 6f 75 73 65 44 |seUp...o|n mouseD|
|00003ef0| 6f 77 6e 0d 2d 2d 20 65 | 61 74 20 65 76 65 6e 74 |own.-- e|at event|
|00003f00| 2c 20 73 6f 20 64 6f 65 | 73 20 6e 6f 74 20 67 6f |, so doe|s not go|
|00003f10| 20 66 75 72 74 68 65 72 | 2e 0d 65 6e 64 20 6d 6f | further|..end mo|
|00003f20| 75 73 65 44 6f 77 6e 00 | 01 9c 00 09 01 00 00 13 |useDown.|........|
|00003f30| 01 11 00 44 01 37 80 01 | 00 00 66 c5 00 01 00 00 |...D.7..|..f.....|
|00003f40| 00 0c 00 00 00 10 52 65 | 70 61 69 6e 74 00 00 6f |......Re|paint..o|
|00003f50| 6e 20 6d 6f 75 73 65 55 | 70 0d 0d 69 66 20 74 68 |n mouseU|p..if th|
|00003f60| 65 20 6f 70 74 69 6f 6e | 4b 65 79 20 69 73 20 22 |e option|Key is "|
|00003f70| 64 6f 77 6e 22 20 74 68 | 65 6e 0d 2d 2d 20 64 6f |down" th|en.-- do|
|00003f80| 6e 27 74 20 6c 6f 63 6b | 20 73 63 72 65 65 6e 2c |n't lock| screen,|
|00003f90| 20 6c 65 74 20 75 73 65 | 72 20 73 65 65 20 73 6f | let use|r see so|
|00003fa0| 20 73 65 65 73 20 6c 69 | 6e 65 20 73 65 67 73 0d | sees li|ne segs.|
|00003fb0| 73 61 76 65 55 73 65 72 | 50 61 69 6e 74 43 68 6f |saveUser|PaintCho|
|00003fc0| 69 63 65 73 0d 72 65 64 | 72 61 77 20 2d 2d 20 72 |ices.red|raw -- r|
|00003fd0| 65 66 72 65 73 68 20 61 | 6c 6c 20 73 74 69 63 6b |efresh a|ll stick|
|00003fe0| 20 6c 69 6e 65 73 20 74 | 6f 20 65 6c 69 6d 69 6e | lines t|o elimin|
|00003ff0| 61 74 65 20 67 61 70 73 | 0d 72 65 73 74 6f 72 65 |ate gaps|.restore|
|00004000| 55 73 65 72 50 61 69 6e | 74 43 68 6f 69 63 65 73 |UserPain|tChoices|
|00004010| 0d 63 68 6f 6f 73 65 20 | 62 72 6f 77 73 65 20 74 |.choose |browse t|
|00004020| 6f 6f 6c 20 2d 2d 20 72 | 65 64 72 61 77 20 6c 65 |ool -- r|edraw le|
|00004030| 61 76 65 73 20 6c 69 6e | 65 20 74 6f 6f 6c 0d 65 |aves lin|e tool.e|
|00004040| 78 69 74 20 6d 6f 75 73 | 65 55 70 0d 65 6e 64 20 |xit mous|eUp.end |
|00004050| 69 66 0d 0d 63 68 61 6e | 67 65 4d 6f 64 65 20 74 |if..chan|geMode t|
|00004060| 68 65 20 73 68 6f 72 74 | 20 6e 61 6d 65 20 6f 66 |he short| name of|
|00004070| 20 6d 65 0d 0d 65 6e 64 | 20 6d 6f 75 73 65 55 70 | me..end| mouseUp|
|00004080| 0d 0d 6f 6e 20 6d 6f 75 | 73 65 44 6f 77 6e 0d 2d |..on mou|seDown.-|
|00004090| 2d 20 65 61 74 20 65 76 | 65 6e 74 2c 20 73 6f 20 |- eat ev|ent, so |
|000040a0| 64 6f 65 73 20 6e 6f 74 | 20 67 6f 20 66 75 72 74 |does not| go furt|
|000040b0| 68 65 72 2e 0d 65 6e 64 | 20 6d 6f 75 73 65 44 6f |her..end| mouseDo|
|000040c0| 77 6e 00 00 00 a0 00 0d | 01 00 00 13 00 c3 00 44 |wn......|.......D|
|000040d0| 00 eb 80 01 00 00 43 bf | 00 01 00 00 00 0c 00 00 |......C.|........|
|000040e0| 00 10 53 74 72 65 74 63 | 68 00 00 6f 6e 20 6d 6f |..Stretc|h..on mo|
|000040f0| 75 73 65 55 70 0d 63 68 | 61 6e 67 65 4d 6f 64 65 |useUp.ch|angeMode|
|00004100| 20 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | the sho|rt name |
|00004110| 6f 66 20 6d 65 0d 65 6e | 64 20 6d 6f 75 73 65 55 |of me.en|d mouseU|
|00004120| 70 0d 0d 6f 6e 20 6d 6f | 75 73 65 44 6f 77 6e 0d |p..on mo|useDown.|
|00004130| 2d 2d 20 65 61 74 20 65 | 76 65 6e 74 2c 20 73 6f |-- eat e|vent, so|
|00004140| 20 64 6f 65 73 20 6e 6f | 74 20 67 6f 20 66 75 72 | does no|t go fur|
|00004150| 74 68 65 72 2e 0d 65 6e | 64 20 6d 6f 75 73 65 44 |ther..en|d mouseD|
|00004160| 6f 77 6e 00 01 42 00 0f | 01 00 00 13 00 8b 00 45 |own..B..|.......E|
|00004170| 00 b0 80 01 00 00 2d 0d | 00 01 00 00 00 0c 00 00 |......-.|........|
|00004180| 00 10 45 72 61 73 65 00 | 00 6f 6e 20 6d 6f 75 73 |..Erase.|.on mous|
|00004190| 65 55 70 0d 0d 69 66 20 | 74 68 65 20 6f 70 74 69 |eUp..if |the opti|
|000041a0| 6f 6e 4b 65 79 20 69 73 | 20 22 64 6f 77 6e 22 20 |onKey is| "down" |
|000041b0| 74 68 65 6e 0d 65 72 61 | 73 65 41 6e 69 6d 61 74 |then.era|seAnimat|
|000041c0| 69 6f 6e 0d 65 78 69 74 | 20 6d 6f 75 73 65 55 70 |ion.exit| mouseUp|
|000041d0| 0d 65 6e 64 20 69 66 0d | 0d 69 66 20 74 68 65 20 |.end if.|.if the |
|000041e0| 6e 75 6d 62 65 72 20 6f | 66 20 63 61 72 64 73 20 |number o|f cards |
|000041f0| 3e 20 31 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |> 1 then|.answer |
|00004200| 22 53 6f 72 72 79 2c 20 | 6e 6f 20 65 72 61 73 65 |"Sorry, |no erase|
|00004210| 20 77 68 65 6e 20 6d 6f | 72 65 20 74 68 61 6e 20 | when mo|re than |
|00004220| 6f 6e 65 20 63 61 72 64 | 2e 22 0d 65 6c 73 65 0d |one card|.".else.|
|00004230| 63 68 61 6e 67 65 4d 6f | 64 65 20 74 68 65 20 73 |changeMo|de the s|
|00004240| 68 6f 72 74 20 6e 61 6d | 65 20 6f 66 20 6d 65 0d |hort nam|e of me.|
|00004250| 65 6e 64 20 69 66 0d 65 | 6e 64 20 6d 6f 75 73 65 |end if.e|nd mouse|
|00004260| 55 70 0d 0d 6f 6e 20 6d | 6f 75 73 65 44 6f 77 6e |Up..on m|ouseDown|
|00004270| 0d 2d 2d 20 65 61 74 20 | 65 76 65 6e 74 2c 20 73 |.-- eat |event, s|
|00004280| 6f 20 64 6f 65 73 20 6e | 6f 74 20 67 6f 20 66 75 |o does n|ot go fu|
|00004290| 72 74 68 65 72 2e 0d 65 | 6e 64 20 6d 6f 75 73 65 |rther..e|nd mouse|
|000042a0| 44 6f 77 6e 00 00 04 8a | 00 11 01 00 00 12 00 04 |Down....|........|
|000042b0| 00 45 00 29 20 00 00 00 | 4c de 00 01 00 00 00 0c |.E.) ...|L.......|
|000042c0| 00 00 00 10 41 62 6f 75 | 74 00 00 6f 6e 20 6d 6f |....Abou|t..on mo|
|000042d0| 75 73 65 44 6f 77 6e 0d | 6c 6f 63 6b 20 73 63 72 |useDown.|lock scr|
|000042e0| 65 65 6e 0d 0d 2d 2d 20 | 43 6c 65 61 72 20 74 68 |een..-- |Clear th|
|000042f0| 65 20 20 70 61 69 6e 74 | 20 73 6f 20 74 68 65 20 |e paint| so the |
|00004300| 62 6b 67 6e 64 20 66 69 | 65 6c 64 20 69 73 20 75 |bkgnd fi|eld is u|
|00004310| 6e 6f 62 73 74 72 75 63 | 74 65 64 2e 0d 63 68 6f |nobstruc|ted..cho|
|00004320| 6f 73 65 20 73 65 6c 65 | 63 74 20 74 6f 6f 6c 0d |ose sele|ct tool.|
|00004330| 64 6f 4d 65 6e 75 20 22 | 4b 65 65 70 22 0d 64 6f |doMenu "|Keep".do|
|00004340| 4d 65 6e 75 20 22 53 65 | 6c 65 63 74 20 41 6c 6c |Menu "Se|lect All|
|00004350| 22 0d 64 6f 4d 65 6e 75 | 20 22 43 6c 65 61 72 20 |".doMenu| "Clear |
|00004360| 50 69 63 74 75 72 65 22 | 0d 0d 75 6e 6c 6f 63 6b |Picture"|..unlock|
|00004370| 20 73 63 72 65 65 6e 0d | 0d 2d 2d 20 50 75 74 20 | screen.|.-- Put |
|00004380| 6f 75 72 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |our copy|right no|
|00004390| 74 69 63 65 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |tice on |the scre|
|000043a0| 65 6e 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |en.put e|mpty int|
|000043b0| 6f 20 62 6b 67 6e 64 20 | 66 69 65 6c 64 20 22 41 |o bkgnd |field "A|
|000043c0| 62 6f 75 74 22 0d 70 75 | 74 20 22 53 74 69 63 6b |bout".pu|t "Stick|
|000043d0| 41 6e 69 6d 61 74 6f 72 | 20 20 43 6f 70 79 72 69 |Animator| Copyri|
|000043e0| 67 68 74 20 31 39 38 38 | 20 4c 6c 6f 79 64 20 4b |ght 1988| Lloyd K|
|000043f0| 6f 6e 6e 65 6b 65 72 2e | 20 20 22 20 61 66 74 65 |onneker.| " afte|
|00004400| 72 20 62 6b 67 6e 64 20 | 66 69 65 6c 64 20 22 41 |r bkgnd |field "A|
|00004410| 62 6f 75 74 22 0d 70 75 | 74 20 22 41 6c 6c 20 72 |bout".pu|t "All r|
|00004420| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 22 |ights re|served."|
|00004430| 20 61 66 74 65 72 20 62 | 6b 67 6e 64 20 66 69 65 | after b|kgnd fie|
|00004440| 6c 64 20 22 41 62 6f 75 | 74 22 0d 70 75 74 20 52 |ld "Abou|t".put R|
|00004450| 65 74 75 72 6e 20 61 66 | 74 65 72 20 62 6b 67 6e |eturn af|ter bkgn|
|00004460| 64 20 66 69 65 6c 64 20 | 22 41 62 6f 75 74 22 0d |d field |"About".|
|00004470| 70 75 74 20 52 65 74 75 | 72 6e 20 61 66 74 65 72 |put Retu|rn after|
|00004480| 20 62 6b 67 6e 64 20 66 | 69 65 6c 64 20 22 41 62 | bkgnd f|ield "Ab|
|00004490| 6f 75 74 22 0d 70 75 74 | 20 22 53 74 69 63 6b 41 |out".put| "StickA|
|000044a0| 6e 69 6d 61 74 6f 72 20 | 69 73 20 73 68 61 72 65 |nimator |is share|
|000044b0| 77 61 72 65 2e 20 22 20 | 61 66 74 65 72 20 62 6b |ware. " |after bk|
|000044c0| 67 6e 64 20 66 69 65 6c | 64 20 22 41 62 6f 75 74 |gnd fiel|d "About|
|000044d0| 22 0d 70 75 74 20 22 59 | 6f 75 20 6d 61 79 20 63 |".put "Y|ou may c|
|000044e0| 6f 70 79 20 69 74 20 69 | 66 20 74 68 69 73 20 6e |opy it i|f this n|
|000044f0| 6f 74 69 63 65 20 72 65 | 6d 61 69 6e 73 20 69 6e |otice re|mains in|
|00004500| 74 61 63 74 2e 20 20 22 | 20 61 66 74 65 72 20 62 |tact. "| after b|
|00004510| 6b 67 6e 64 20 66 69 65 | 6c 64 20 22 41 62 6f 75 |kgnd fie|ld "Abou|
|00004520| 74 22 0d 70 75 74 20 22 | 49 66 20 79 6f 75 20 6b |t".put "|If you k|
|00004530| 65 65 70 20 61 6e 64 20 | 75 73 65 20 69 74 2c 20 |eep and |use it, |
|00004540| 70 6c 65 61 73 65 20 73 | 65 6e 64 20 24 35 20 74 |please s|end $5 t|
|00004550| 6f 20 4c 6c 6f 79 64 20 | 4b 6f 6e 6e 65 6b 65 72 |o Lloyd |Konneker|
|00004560| 2c 20 22 20 61 66 74 65 | 72 20 62 6b 67 6e 64 20 |, " afte|r bkgnd |
|00004570| 66 69 65 6c 64 20 22 41 | 62 6f 75 74 22 0d 70 75 |field "A|bout".pu|
|00004580| 74 20 22 31 31 31 20 49 | 6e 6e 73 62 72 75 63 6b |t "111 I|nnsbruck|
|00004590| 20 44 72 2e 2c 20 43 6c | 61 79 74 6f 6e 2c 20 4e | Dr., Cl|ayton, N|
|000045a0| 43 20 32 37 35 32 30 2e | 22 20 61 66 74 65 72 20 |C 27520.|" after |
|000045b0| 62 6b 67 6e 64 20 66 69 | 65 6c 64 20 22 41 62 6f |bkgnd fi|eld "Abo|
|000045c0| 75 74 22 0d 70 75 74 20 | 52 65 74 75 72 6e 20 61 |ut".put |Return a|
|000045d0| 66 74 65 72 20 62 6b 67 | 6e 64 20 66 69 65 6c 64 |fter bkg|nd field|
|000045e0| 20 22 41 62 6f 75 74 22 | 0d 70 75 74 20 52 65 74 | "About"|.put Ret|
|000045f0| 75 72 6e 20 61 66 74 65 | 72 20 62 6b 67 6e 64 20 |urn afte|r bkgnd |
|00004600| 66 69 65 6c 64 20 22 41 | 62 6f 75 74 22 0d 70 75 |field "A|bout".pu|
|00004610| 74 20 22 46 6f 72 20 68 | 65 6c 70 2c 20 47 6f 20 |t "For h|elp, Go |
|00004620| 48 65 6c 70 2e 20 53 6f | 6d 65 20 62 75 74 74 6f |Help. So|me butto|
|00004630| 6e 73 20 68 61 76 65 20 | 6f 70 74 69 6f 6e 73 2e |ns have |options.|
|00004640| 22 20 61 66 74 65 72 20 | 62 6b 67 6e 64 20 66 69 |" after |bkgnd fi|
|00004650| 65 6c 64 20 22 41 62 6f | 75 74 22 0d 0d 73 68 6f |eld "Abo|ut"..sho|
|00004660| 77 20 62 6b 67 6e 64 20 | 66 69 65 6c 64 20 22 41 |w bkgnd |field "A|
|00004670| 62 6f 75 74 22 0d 77 61 | 69 74 20 32 30 20 74 69 |bout".wa|it 20 ti|
|00004680| 63 6b 73 0d 77 61 69 74 | 20 75 6e 74 69 6c 20 74 |cks.wait| until t|
|00004690| 68 65 20 6d 6f 75 73 65 | 43 6c 69 63 6b 20 69 73 |he mouse|Click is|
|000046a0| 20 22 74 72 75 65 22 0d | 70 75 74 20 65 6d 70 74 | "true".|put empt|
|000046b0| 79 20 69 6e 74 6f 20 62 | 6b 67 6e 64 20 66 69 65 |y into b|kgnd fie|
|000046c0| 6c 64 20 22 41 62 6f 75 | 74 22 20 20 2d 2d 20 54 |ld "Abou|t" -- T|
|000046d0| 65 78 74 20 6e 6f 74 20 | 68 61 6e 67 20 61 72 6f |ext not |hang aro|
|000046e0| 75 6e 64 0d 68 69 64 65 | 20 62 6b 67 6e 64 20 66 |und.hide| bkgnd f|
|000046f0| 69 65 6c 64 20 22 41 62 | 6f 75 74 22 0d 0d 64 6f |ield "Ab|out"..do|
|00004700| 4d 65 6e 75 20 22 52 65 | 76 65 72 74 22 0d 63 68 |Menu "Re|vert".ch|
|00004710| 6f 6f 73 65 20 62 72 6f | 77 73 65 20 74 6f 6f 6c |oose bro|wse tool|
|00004720| 0d 65 6e 64 20 6d 6f 75 | 73 65 44 6f 77 6e 0d 00 |.end mou|seDown..|
|00004730| 00 26 00 10 02 81 00 4c | 00 2c 01 18 01 d8 20 04 |.&.....L|.,.... .|
|00004740| 00 00 00 00 00 00 00 03 | 00 0e 01 00 00 12 41 62 |........|......Ab|
|00004750| 6f 75 74 00 00 00 01 22 | 00 13 01 00 00 13 00 42 |out...."|.......B|
|00004760| 00 45 00 68 80 01 00 00 | 79 37 00 01 00 00 00 0c |.E.h....|y7......|
|00004770| 00 00 00 10 50 6f 6c 79 | 67 6f 6e 00 00 6f 6e 20 |....Poly|gon..on |
|00004780| 6d 6f 75 73 65 55 70 0d | 69 66 20 74 68 65 20 6e |mouseUp.|if the n|
|00004790| 75 6d 62 65 72 20 6f 66 | 20 63 61 72 64 73 20 3e |umber of| cards >|
|000047a0| 20 31 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 22 | 1 then.|answer "|
|000047b0| 53 6f 72 72 79 2c 20 6e | 6f 20 6e 65 77 20 73 74 |Sorry, n|o new st|
|000047c0| 69 63 6b 73 20 77 68 65 | 6e 20 6d 6f 72 65 20 74 |icks whe|n more t|
|000047d0| 68 61 6e 20 31 20 63 61 | 72 64 2e 22 0d 65 6c 73 |han 1 ca|rd.".els|
|000047e0| 65 0d 63 68 61 6e 67 65 | 4d 6f 64 65 20 74 68 65 |e.change|Mode the|
|000047f0| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 6d | short n|ame of m|
|00004800| 65 0d 63 68 61 6e 67 65 | 54 6f 6f 6c 20 74 68 65 |e.change|Tool the|
|00004810| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 6d | short n|ame of m|
|00004820| 65 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 6d 6f 75 |e.end if|.end mou|
|00004830| 73 65 55 70 0d 0d 6f 6e | 20 6d 6f 75 73 65 44 6f |seUp..on| mouseDo|
|00004840| 77 6e 0d 2d 2d 20 65 61 | 74 20 65 76 65 6e 74 2c |wn.-- ea|t event,|
|00004850| 20 73 6f 20 64 6f 65 73 | 20 6e 6f 74 20 67 6f 20 | so does| not go |
|00004860| 66 75 72 74 68 65 72 2e | 0d 65 6e 64 20 6d 6f 75 |further.|.end mou|
|00004870| 73 65 44 6f 77 6e 00 00 | 00 2d 2d 20 43 6f 70 79 |seDown..|.-- Copy|
|00004880| 72 69 67 68 74 20 31 39 | 38 38 20 4c 6c 6f 79 64 |right 19|88 Lloyd|
|00004890| 20 4b 6f 6e 6e 65 6b 65 | 72 2e 20 20 41 6c 6c 20 | Konneke|r. All |
|000048a0| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2e |rights r|eserved.|
|000048b0| 0d 0d 0d 2d 2d 20 4e 4f | 54 45 53 0d 0d 2d 2d 20 |...-- NO|TES..-- |
|000048c0| 53 74 69 63 6b 73 20 61 | 72 65 20 72 65 70 72 65 |Sticks a|re repre|
|000048d0| 73 65 6e 74 65 64 20 62 | 79 20 62 75 74 74 6f 6e |sented b|y button|
|000048e0| 73 20 61 6e 64 20 64 72 | 61 77 6e 20 61 73 20 6c |s and dr|awn as l|
|000048f0| 69 6e 65 73 20 6f 72 20 | 70 6f 6c 79 67 6f 6e 73 |ines or |polygons|
|00004900| 2e 0d 2d 2d 20 55 73 65 | 72 20 63 6c 69 63 6b 73 |..-- Use|r clicks|
|00004910| 20 62 75 74 74 6f 6e 2c | 20 61 6e 64 20 64 72 61 | button,| and dra|
|00004920| 67 73 20 62 75 74 74 6f | 6e 20 74 6f 20 70 65 72 |gs butto|n to per|
|00004930| 66 6f 72 6d 20 73 74 69 | 63 6b 20 6f 70 65 72 61 |form sti|ck opera|
|00004940| 74 69 6f 6e 73 2e 0d 0d | 2d 2d 20 54 68 65 20 6e |tions...|-- The n|
|00004950| 61 6d 65 20 6f 66 20 74 | 68 65 20 62 75 74 74 6f |ame of t|he butto|
|00004960| 6e 20 68 6f 6c 64 73 20 | 61 6c 6c 20 74 68 65 20 |n holds |all the |
|00004970| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00004980| 74 20 74 68 65 20 73 74 | 69 63 6b 3a 0d 2d 2d 20 |t the st|ick:.-- |
|00004990| 20 49 74 65 6d 20 20 20 | 20 55 73 65 0d 2d 2d 20 | Item | Use.-- |
|000049a0| 20 31 2d 34 20 20 20 20 | 20 76 65 63 74 6f 72 20 | 1-4 | vector |
|000049b0| 64 65 73 63 72 69 62 69 | 6e 67 20 74 68 65 20 6c |describi|ng the l|
|000049c0| 69 6e 65 20 66 6f 72 20 | 74 68 65 20 73 74 69 63 |ine for |the stic|
|000049d0| 6b 2e 0d 2d 2d 20 20 35 | 20 20 20 20 20 20 20 62 |k..-- 5| b|
|000049e0| 6f 6f 6c 65 61 6e 20 6f | 66 20 76 69 73 69 62 69 |oolean o|f visibi|
|000049f0| 6c 69 74 79 20 28 6e 6f | 74 20 75 73 65 64 20 63 |lity (no|t used c|
|00004a00| 75 72 72 65 6e 74 6c 79 | 29 0d 2d 2d 20 20 36 20 |urrently|).-- 6 |
|00004a10| 20 20 20 20 20 20 49 44 | 20 6f 66 20 74 68 65 20 | ID| of the |
|00004a20| 61 6e 63 65 73 74 6f 72 | 20 73 74 69 63 6b 27 73 |ancestor| stick's|
|00004a30| 20 62 75 74 74 6f 6e 2e | 0d 2d 2d 20 20 37 20 20 | button.|.-- 7 |
|00004a40| 20 20 20 20 20 22 6c 69 | 6e 65 22 20 6f 72 20 22 | "li|ne" or "|
|00004a50| 72 65 67 75 6c 61 72 20 | 70 6f 6c 79 67 6f 6e 22 |regular |polygon"|
|00004a60| 0d 2d 2d 20 20 38 20 20 | 20 20 20 20 20 6c 69 6e |.-- 8 | lin|
|00004a70| 65 20 73 69 7a 65 20 6f | 72 20 70 6f 6c 79 53 69 |e size o|r polySi|
|00004a80| 64 65 73 0d 2d 2d 20 20 | 39 20 20 20 20 20 20 20 |des.-- |9 |
|00004a90| 70 61 74 74 65 72 6e 20 | 6e 75 6d 62 65 72 0d 2d |pattern |number.-|
|00004aa0| 2d 20 20 31 30 2e 2e 2e | 20 20 20 6c 69 73 74 20 |- 10...| list |
|00004ab0| 6f 66 20 64 65 73 63 65 | 6e 64 61 6e 74 73 20 28 |of desce|ndants (|
|00004ac0| 49 44 20 6f 66 20 73 74 | 69 63 6b 20 62 75 74 74 |ID of st|ick butt|
|00004ad0| 6f 6e 73 29 0d 0d 0d 2d | 2d 20 20 44 45 53 49 47 |ons)...-|- DESIG|
|00004ae0| 4e 20 43 4f 4e 53 49 44 | 45 52 41 54 49 4f 4e 53 |N CONSID|ERATIONS|
|00004af0| 0d 2d 2d 20 43 68 6f 6f | 73 69 6e 67 20 61 20 74 |.-- Choo|sing a t|
|00004b00| 6f 6f 6c 20 74 68 61 74 | 20 69 73 20 61 6c 72 65 |ool that| is alre|
|00004b10| 61 64 79 20 63 68 6f 73 | 65 6e 20 69 73 20 66 61 |ady chos|en is fa|
|00004b20| 73 74 2e 0d 2d 2d 20 43 | 68 6f 6f 73 69 6e 67 20 |st..-- C|hoosing |
|00004b30| 61 20 74 6f 6f 6c 20 74 | 68 61 74 20 69 73 20 64 |a tool t|hat is d|
|00004b40| 69 66 66 65 72 65 6e 74 | 20 74 61 6b 65 73 20 32 |ifferent| takes 2|
|00004b50| 35 20 74 69 63 6b 73 2e | 0d 2d 2d 20 4d 69 6e 69 |5 ticks.|.-- Mini|
|00004b60| 6d 69 7a 65 20 74 6f 6f | 6c 20 63 68 6f 6f 73 69 |mize too|l choosi|
|00004b70| 6e 67 20 74 6f 20 6b 65 | 65 70 20 69 74 20 66 61 |ng to ke|ep it fa|
|00004b80| 73 74 2e 0d 0d 2d 2d 20 | 46 6f 72 20 64 72 61 67 |st...-- |For drag|
|00004b90| 67 69 6e 67 2c 20 77 65 | 20 65 72 61 73 65 20 6c |ging, we| erase l|
|00004ba0| 69 6e 65 20 61 74 20 61 | 20 74 69 6d 65 2e 0d 2d |ine at a| time..-|
|00004bb0| 2d 20 45 72 61 73 65 20 | 61 20 6c 69 6e 65 20 61 |- Erase |a line a|
|00004bc0| 74 20 61 20 74 69 6d 65 | 20 69 73 20 62 65 74 74 |t a time| is bett|
|00004bd0| 65 72 20 66 6f 72 20 64 | 72 61 67 73 20 6f 66 20 |er for d|rags of |
|00004be0| 73 6d 61 6c 6c 20 74 72 | 65 65 73 2e 0d 2d 2d 20 |small tr|ees..-- |
|00004bf0| 42 75 74 20 62 61 74 63 | 68 20 65 72 61 73 65 20 |But batc|h erase |
|00004c00| 69 73 20 62 65 74 74 65 | 72 20 66 6f 72 20 64 72 |is bette|r for dr|
|00004c10| 61 67 73 20 6f 66 20 6c | 61 72 67 65 20 74 72 65 |ags of l|arge tre|
|00004c20| 65 73 2e 0d 0d 0d 0d 6f | 6e 20 6d 6f 75 73 65 44 |es.....o|n mouseD|
|00004c30| 6f 77 6e 0d 2d 2d 20 4d | 6f 73 74 20 6d 6f 75 73 |own.-- M|ost mous|
|00004c40| 65 44 6f 77 6e 73 20 68 | 61 6e 64 6c 65 64 20 62 |eDowns h|andled b|
|00004c50| 79 20 73 74 69 63 6b 20 | 62 75 74 74 6f 6e 73 2e |y stick |buttons.|
|00004c60| 0d 2d 2d 20 54 68 69 73 | 20 69 73 20 61 20 6d 6f |.-- This| is a mo|
|00004c70| 75 73 65 44 6f 77 6e 20 | 6c 6f 6f 73 65 20 6f 6e |useDown |loose on|
|00004c80| 20 74 68 65 20 63 61 72 | 64 2e 0d 2d 2d 20 43 6f | the car|d..-- Co|
|00004c90| 75 6c 64 20 62 65 20 74 | 68 65 20 66 69 72 73 74 |uld be t|he first|
|00004ca0| 20 73 74 69 63 6b 2e 0d | 0d 70 75 74 20 74 68 65 | stick..|.put the|
|00004cb0| 20 6d 6f 75 73 65 4c 6f | 63 20 69 6e 74 6f 20 73 | mouseLo|c into s|
|00004cc0| 74 61 72 74 4c 6f 63 0d | 0d 69 66 20 69 73 44 72 |tartLoc.|.if isDr|
|00004cd0| 61 77 4d 6f 64 65 28 29 | 20 74 68 65 6e 0d 69 66 |awMode()| then.if|
|00004ce0| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|00004cf0| 63 61 72 64 20 62 75 74 | 74 6f 6e 73 20 3d 20 30 |card but|tons = 0|
|00004d00| 29 20 74 68 65 6e 0d 70 | 75 74 20 77 61 69 74 4d |) then.p|ut waitM|
|00004d10| 6f 75 73 65 55 70 28 29 | 20 69 6e 74 6f 20 65 6e |ouseUp()| into en|
|00004d20| 64 4c 6f 63 20 2d 2d 20 | 77 61 69 74 20 66 6f 72 |dLoc -- |wait for|
|00004d30| 20 6d 6f 75 73 65 75 70 | 0d 69 6e 69 74 47 72 61 | mouseup|.initGra|
|00004d40| 70 68 4f 70 73 0d 63 72 | 65 61 74 65 52 6f 6f 74 |phOps.cr|eateRoot|
|00004d50| 20 73 74 61 72 74 4c 6f | 63 2c 20 65 6e 64 4c 6f | startLo|c, endLo|
|00004d60| 63 20 2d 2d 20 44 69 73 | 74 69 6e 67 75 69 73 68 |c -- Dis|tinguish|
|00004d70| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 72 65 73 74 |ed from |the rest|
|00004d80| 2e 0d 66 69 6e 69 47 72 | 61 70 68 4f 70 73 0d 65 |..finiGr|aphOps.e|
|00004d90| 6c 73 65 0d 61 6e 73 77 | 65 72 20 22 53 6f 72 72 |lse.answ|er "Sorr|
|00004da0| 79 2c 20 6f 6e 6c 79 20 | 6f 6e 65 20 74 72 65 65 |y, only |one tree|
|00004db0| 20 61 6c 6c 6f 77 65 64 | 2e 22 0d 61 6e 73 77 65 | allowed|.".answe|
|00004dc0| 72 20 22 43 6f 6e 6e 65 | 63 74 20 6e 65 77 20 73 |r "Conne|ct new s|
|00004dd0| 74 69 63 6b 73 20 74 6f | 20 65 78 69 73 74 69 6e |ticks to| existin|
|00004de0| 67 20 74 72 65 65 2e 22 | 0d 65 6e 64 20 69 66 0d |g tree."|.end if.|
|00004df0| 65 6c 73 65 0d 2d 2d 20 | 51 75 65 73 74 69 6f 6e |else.-- |Question|
|00004e00| 20 61 6c 6c 20 6f 74 68 | 65 72 20 73 74 72 61 79 | all oth|er stray|
|00004e10| 20 6d 6f 75 73 65 44 6f | 77 6e 73 2e 0d 62 65 65 | mouseDo|wns..bee|
|00004e20| 70 20 31 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 6d |p 1.end |if.end m|
|00004e30| 6f 75 73 65 44 6f 77 6e | 0d 0d 0d 2d 2d 20 45 6e |ouseDown|...-- En|
|00004e40| 66 6f 72 63 65 20 74 68 | 61 74 20 61 66 74 65 72 |force th|at after|
|00004e50| 20 6d 61 73 74 65 72 20 | 63 61 72 64 20 69 73 20 | master |card is |
|00004e60| 63 6f 70 69 65 64 2c 20 | 6e 6f 20 73 74 69 63 6b |copied, |no stick|
|00004e70| 73 20 64 65 6c 65 74 65 | 64 2e 0d 2d 2d 20 54 68 |s delete|d..-- Th|
|00004e80| 65 20 65 72 61 73 65 20 | 61 6e 64 20 64 72 61 77 |e erase |and draw|
|00004e90| 20 62 75 74 74 6f 6e 73 | 20 63 68 65 63 6b 20 74 | buttons| check t|
|00004ea0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 61 72 |he numbe|r of car|
|00004eb0| 64 73 2e 0d 2d 2d 20 49 | 66 20 61 20 6d 65 6e 75 |ds..-- I|f a menu|
|00004ec0| 2c 20 77 6f 75 6c 64 20 | 67 72 65 79 20 74 68 65 |, would |grey the|
|00004ed0| 20 6d 65 6e 75 20 69 74 | 65 6d 2e 0d 2d 2d 20 48 | menu it|em..-- H|
|00004ee0| 69 64 69 6e 67 20 69 74 | 20 63 6f 6d 70 6c 65 74 |iding it| complet|
|00004ef0| 65 6c 79 20 69 73 20 72 | 69 67 68 74 20 6f 75 74 |ely is r|ight out|
|00004f00| 2e 0d 6f 6e 20 6f 70 65 | 6e 43 61 72 64 0d 69 66 |..on ope|nCard.if|
|00004f10| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|00004f20| 61 72 64 73 20 3e 20 31 | 20 74 68 65 6e 0d 69 66 |ards > 1| then.if|
|00004f30| 20 28 74 68 65 4d 6f 64 | 65 28 29 20 3d 20 22 45 | (theMod|e() = "E|
|00004f40| 72 61 73 65 22 29 20 4f | 52 20 69 73 44 72 61 77 |rase") O|R isDraw|
|00004f50| 4d 6f 64 65 28 29 20 74 | 68 65 6e 0d 63 68 61 6e |Mode() t|hen.chan|
|00004f60| 67 65 4d 6f 64 65 20 22 | 65 6d 70 74 79 22 0d 65 |geMode "|empty".e|
|00004f70| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 65 6e 64 |nd if.en|d if.end|
|00004f80| 20 6f 70 65 6e 43 61 72 | 64 0d 0d 0d 0d 2d 2d 20 | openCar|d....-- |
|00004f90| 20 48 49 47 48 20 4c 45 | 56 45 4c 20 54 52 45 45 | HIGH LE|VEL TREE|
|00004fa0| 20 47 52 41 50 48 49 43 | 41 4c 20 4f 50 45 52 41 | GRAPHIC|AL OPERA|
|00004fb0| 54 49 4f 4e 53 0d 0d 6f | 6e 20 64 72 61 67 44 65 |TIONS..o|n dragDe|
|00004fc0| 73 63 65 6e 64 61 6e 74 | 73 20 70 61 72 65 6e 74 |scendant|s parent|
|00004fd0| 53 74 69 63 6b 2c 20 78 | 49 6e 63 2c 20 79 49 6e |Stick, x|Inc, yIn|
|00004fe0| 63 0d 2d 2d 20 52 65 63 | 75 72 73 69 76 65 20 63 |c.-- Rec|ursive c|
|00004ff0| 61 6c 6c 20 66 6f 72 20 | 61 6c 6c 20 74 68 65 20 |all for |all the |
|00005000| 64 65 73 63 65 6e 64 61 | 6e 74 73 0d 70 75 74 20 |descenda|nts.put |
|00005010| 73 74 69 63 6b 56 65 63 | 74 6f 72 28 70 61 72 65 |stickVec|tor(pare|
|00005020| 6e 74 73 74 69 63 6b 29 | 20 69 6e 74 6f 20 6c 6f |ntstick)| into lo|
|00005030| 63 61 6c 4e 61 6d 65 0d | 72 65 70 65 61 74 20 77 |calName.|repeat w|
|00005040| 69 74 68 20 69 6e 64 65 | 78 20 3d 20 66 69 72 73 |ith inde|x = firs|
|00005050| 74 44 65 73 63 49 74 65 | 6d 28 29 20 74 6f 20 74 |tDescIte|m() to t|
|00005060| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 69 74 65 |he numbe|r of ite|
|00005070| 6d 73 20 69 6e 20 6c 6f | 63 61 6c 4e 61 6d 65 0d |ms in lo|calName.|
|00005080| 67 65 74 20 69 74 65 6d | 20 69 6e 64 65 78 20 6f |get item| index o|
|00005090| 66 20 6c 6f 63 61 6c 4e | 61 6d 65 0d 64 72 61 67 |f localN|ame.drag|
|000050a0| 54 72 65 65 20 69 74 2c | 20 78 49 6e 63 2c 20 79 |Tree it,| xInc, y|
|000050b0| 49 6e 63 20 2d 2d 20 6e | 65 76 65 72 20 64 72 61 |Inc -- n|ever dra|
|000050c0| 67 20 61 6e 20 65 6d 74 | 70 79 20 73 74 69 63 6b |g an emt|py stick|
|000050d0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |.end rep|eat.end |
|000050e0| 64 72 61 67 44 65 73 63 | 65 6e 64 61 6e 74 73 0d |dragDesc|endants.|
|000050f0| 0d 2d 2d 20 64 72 61 67 | 54 72 65 65 20 61 6e 64 |.-- drag|Tree and|
|00005100| 20 64 72 61 67 44 65 73 | 63 65 6e 64 61 6e 74 73 | dragDes|cendants|
|00005110| 20 61 72 65 20 69 6e 20 | 61 20 72 65 63 75 72 73 | are in |a recurs|
|00005120| 69 76 65 20 63 79 63 6c | 65 0d 6f 6e 20 64 72 61 |ive cycl|e.on dra|
|00005130| 67 54 72 65 65 20 72 6f | 6f 74 53 74 69 63 6b 2c |gTree ro|otStick,|
|00005140| 20 78 49 6e 63 2c 20 79 | 49 6e 63 0d 2d 2d 20 43 | xInc, y|Inc.-- C|
|00005150| 61 6e 20 6e 6f 74 20 62 | 65 20 63 61 6c 6c 65 64 |an not b|e called|
|00005160| 20 77 69 74 68 20 65 6d | 70 74 79 20 73 74 69 63 | with em|pty stic|
|00005170| 6b 2e 0d 0d 64 72 61 67 | 53 74 69 63 6b 20 72 6f |k...drag|Stick ro|
|00005180| 6f 74 53 74 69 63 6b 2c | 20 78 49 6e 63 2c 20 79 |otStick,| xInc, y|
|00005190| 49 6e 63 20 2d 2d 20 44 | 72 61 67 20 74 68 69 73 |Inc -- D|rag this|
|000051a0| 20 73 74 69 63 6b 0d 64 | 72 61 67 44 65 73 63 65 | stick.d|ragDesce|
|000051b0| 6e 64 61 6e 74 73 20 72 | 6f 6f 74 53 74 69 63 6b |ndants r|ootStick|
|000051c0| 2c 20 78 49 6e 63 2c 20 | 79 49 6e 63 20 2d 2d 20 |, xInc, |yInc -- |
|000051d0| 44 72 61 67 20 69 74 73 | 20 64 65 73 63 65 6e 64 |Drag its| descend|
|000051e0| 61 6e 74 73 0d 65 6e 64 | 20 64 72 61 67 54 72 65 |ants.end| dragTre|
|000051f0| 65 0d 0d 0d 0d 2d 2d 20 | 43 61 6c 6c 65 64 20 66 |e....-- |Called f|
|00005200| 72 6f 6d 20 64 72 61 67 | 6e 6f 64 65 20 77 68 65 |rom drag|node whe|
|00005210| 6e 20 74 6f 6f 6c 20 69 | 73 20 73 74 72 65 74 63 |n tool i|s stretc|
|00005220| 68 2e 0d 2d 2d 20 4e 6f | 20 73 75 63 68 20 6d 65 |h..-- No| such me|
|00005230| 73 73 61 67 65 20 61 73 | 20 73 77 69 6e 67 74 72 |ssage as| swingtr|
|00005240| 65 65 0d 0d 6f 6e 20 73 | 77 69 6e 67 44 65 73 63 |ee..on s|wingDesc|
|00005250| 65 6e 64 61 6e 74 73 20 | 70 61 72 65 6e 74 53 74 |endants |parentSt|
|00005260| 69 63 6b 2c 20 6e 65 77 | 4c 6f 63 0d 2d 2d 20 41 |ick, new|Loc.-- A|
|00005270| 62 6f 75 74 20 74 68 65 | 69 72 20 68 65 61 64 73 |bout the|ir heads|
|00005280| 2e 0d 2d 2d 20 52 65 63 | 75 72 73 69 76 65 20 63 |..-- Rec|ursive c|
|00005290| 61 6c 6c 20 66 6f 72 20 | 61 6c 6c 20 74 68 65 20 |all for |all the |
|000052a0| 64 65 73 63 65 6e 64 61 | 6e 74 73 0d 0d 70 75 74 |descenda|nts..put|
|000052b0| 20 73 74 69 63 6b 56 65 | 63 74 6f 72 28 70 61 72 | stickVe|ctor(par|
|000052c0| 65 6e 74 73 74 69 63 6b | 29 20 69 6e 74 6f 20 6c |entstick|) into l|
|000052d0| 6f 63 61 6c 4e 61 6d 65 | 0d 72 65 70 65 61 74 20 |ocalName|.repeat |
|000052e0| 77 69 74 68 20 69 6e 64 | 65 78 20 3d 20 66 69 72 |with ind|ex = fir|
|000052f0| 73 74 44 65 73 63 49 74 | 65 6d 28 29 20 74 6f 20 |stDescIt|em() to |
|00005300| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |the numb|er of it|
|00005310| 65 6d 73 20 69 6e 20 6c | 6f 63 61 6c 4e 61 6d 65 |ems in l|ocalName|
|00005320| 0d 67 65 74 20 69 74 65 | 6d 20 69 6e 64 65 78 20 |.get ite|m index |
|00005330| 6f 66 20 6c 6f 63 61 6c | 4e 61 6d 65 0d 73 77 69 |of local|Name.swi|
|00005340| 6e 67 53 74 69 63 6b 48 | 20 69 74 2c 20 6e 65 77 |ngStickH| it, new|
|00005350| 4c 6f 63 20 2d 2d 20 53 | 57 49 4e 47 20 41 52 4f |Loc -- S|WING ARO|
|00005360| 55 4e 44 20 48 45 41 44 | 0d 65 6e 64 20 72 65 70 |UND HEAD|.end rep|
|00005370| 65 61 74 0d 65 6e 64 20 | 73 77 69 6e 67 44 65 73 |eat.end |swingDes|
|00005380| 63 65 6e 64 61 6e 74 73 | 0d 0d 0d 0d 2d 2d 20 20 |cendants|....-- |
|00005390| 20 20 20 4d 4f 44 55 4c | 45 20 46 4f 52 20 53 54 | MODUL|E FOR ST|
|000053a0| 49 43 4b 20 47 52 41 50 | 48 49 43 41 4c 20 4f 50 |ICK GRAP|HICAL OP|
|000053b0| 45 52 41 54 49 4f 4e 53 | 0d 0d 2d 2d 20 57 65 20 |ERATIONS|..-- We |
|000053c0| 63 6f 75 6c 64 20 73 61 | 76 65 20 61 6e 64 20 72 |could sa|ve and r|
|000053d0| 65 73 74 6f 72 65 20 74 | 68 65 20 74 6f 6f 6c 20 |estore t|he tool |
|000053e0| 63 68 61 72 61 63 74 65 | 72 69 73 74 69 63 73 20 |characte|ristics |
|000053f0| 68 65 72 65 2c 20 69 6e | 20 63 61 73 65 20 77 65 |here, in| case we|
|00005400| 20 63 68 61 6e 67 65 20 | 74 68 65 6d 0d 2d 2d 20 | change |them.-- |
|00005410| 73 6f 20 74 68 65 79 20 | 77 6f 75 6c 64 20 6e 6f |so they |would no|
|00005420| 74 20 63 68 61 6e 67 65 | 20 6f 75 74 20 66 72 6f |t change| out fro|
|00005430| 6d 20 75 6e 64 65 72 20 | 74 68 65 20 75 73 65 72 |m under |the user|
|00005440| 2e 0d 0d 6f 6e 20 69 6e | 69 74 47 72 61 70 68 4f |...on in|itGraphO|
|00005450| 70 73 0d 2d 2d 20 53 74 | 75 66 66 20 6e 65 63 65 |ps.-- St|uff nece|
|00005460| 73 73 61 72 79 20 62 65 | 66 6f 72 65 20 64 72 61 |ssary be|fore dra|
|00005470| 77 69 6e 67 0d 0d 73 65 | 74 20 74 68 65 20 67 72 |wing..se|t the gr|
|00005480| 69 64 20 74 6f 20 22 66 | 61 6c 73 65 22 20 2d 2d |id to "f|alse" --|
|00005490| 20 77 65 20 64 6f 6e 27 | 74 20 72 65 73 74 6f 72 | we don'|t restor|
|000054a0| 65 20 74 68 69 73 0d 73 | 65 74 20 74 68 65 20 63 |e this.s|et the c|
|000054b0| 75 72 73 6f 72 20 74 6f | 20 62 75 73 79 0d 6c 6f |ursor to| busy.lo|
|000054c0| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 69 6e |ck scree|n.end in|
|000054d0| 69 74 47 72 61 70 68 4f | 70 73 0d 0d 0d 6f 6e 20 |itGraphO|ps...on |
|000054e0| 66 69 6e 69 47 72 61 70 | 68 4f 70 73 0d 63 68 6f |finiGrap|hOps.cho|
|000054f0| 6f 73 65 20 62 72 6f 77 | 73 65 20 74 6f 6f 6c 20 |ose brow|se tool |
|00005500| 2d 2d 20 73 65 74 73 20 | 63 75 72 73 6f 72 20 74 |-- sets |cursor t|
|00005510| 6f 20 68 61 6e 64 0d 75 | 6e 6c 6f 63 6b 20 73 63 |o hand.u|nlock sc|
|00005520| 72 65 65 6e 0d 65 6e 64 | 20 66 69 6e 69 47 72 61 |reen.end| finiGra|
|00005530| 70 68 4f 70 73 0d 0d 0d | 0d 0d 6f 6e 20 74 72 61 |phOps...|..on tra|
|00005540| 63 65 53 74 69 63 6b 20 | 74 68 65 53 74 69 63 6b |ceStick |theStick|
|00005550| 0d 2d 2d 20 44 72 61 77 | 20 74 68 65 20 67 72 61 |.-- Draw| the gra|
|00005560| 70 68 69 63 73 20 28 6e | 6f 74 20 74 68 65 20 62 |phics (n|ot the b|
|00005570| 75 74 74 6f 6e 29 20 6f | 66 20 74 68 65 20 73 74 |utton) o|f the st|
|00005580| 69 63 6b 2e 0d 2d 2d 20 | 57 69 6c 6c 20 65 76 65 |ick..-- |Will eve|
|00005590| 6e 20 64 72 61 77 20 69 | 6e 76 69 73 69 62 6c 65 |n draw i|nvisible|
|000055a0| 20 28 77 68 69 74 65 29 | 20 73 74 69 63 6b 73 2e | (white)| sticks.|
|000055b0| 0d 0d 73 65 74 44 72 61 | 77 69 6e 67 54 6f 6f 6c |..setDra|wingTool|
|000055c0| 73 20 74 68 65 53 74 69 | 63 6b 20 20 2d 2d 20 63 |s theSti|ck -- c|
|000055d0| 68 6f 6f 73 65 20 74 6f | 6f 6c 73 20 61 63 63 6f |hoose to|ols acco|
|000055e0| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 73 74 69 |rding to| the sti|
|000055f0| 63 6b 0d 64 72 61 67 53 | 74 69 63 6b 54 6f 6f 6c |ck.dragS|tickTool|
|00005600| 20 74 68 65 53 74 69 63 | 6b 0d 65 6e 64 20 74 72 | theStic|k.end tr|
|00005610| 61 63 65 53 74 69 63 6b | 0d 0d 0d 0d 6f 6e 20 64 |aceStick|....on d|
|00005620| 72 61 67 53 74 69 63 6b | 54 6f 6f 6c 20 74 68 65 |ragStick|Tool the|
|00005630| 53 74 69 63 6b 0d 2d 2d | 20 44 72 61 67 20 6f 76 |Stick.--| Drag ov|
|00005640| 65 72 20 74 68 65 20 76 | 65 63 74 6f 72 20 6f 66 |er the v|ector of|
|00005650| 20 74 68 65 20 73 74 69 | 63 6b 2e 0d 2d 2d 20 41 | the sti|ck..-- A|
|00005660| 73 73 65 72 74 20 74 68 | 65 20 70 72 6f 70 65 72 |ssert th|e proper|
|00005670| 20 74 6f 6f 6c 20 69 73 | 20 61 6c 72 65 61 64 79 | tool is| already|
|00005680| 20 63 68 6f 73 65 6e 0d | 0d 70 75 74 20 73 74 69 | chosen.|.put sti|
|00005690| 63 6b 56 65 63 74 6f 72 | 28 74 68 65 53 74 69 63 |ckVector|(theStic|
|000056a0| 6b 29 20 69 6e 74 6f 20 | 73 74 69 63 6b 43 6f 6f |k) into |stickCoo|
|000056b0| 72 64 73 0d 64 72 61 67 | 20 66 72 6f 6d 20 c2 20 |rds.drag| from . |
|000056c0| 20 20 2d 2d 20 64 72 61 | 77 20 74 68 65 20 6c 69 | -- dra|w the li|
|000056d0| 6e 65 0d 69 74 65 6d 20 | 31 20 6f 66 20 73 74 69 |ne.item |1 of sti|
|000056e0| 63 6b 43 6f 6f 72 64 73 | 2c 20 69 74 65 6d 20 32 |ckCoords|, item 2|
|000056f0| 20 6f 66 20 73 74 69 63 | 6b 43 6f 6f 72 64 73 20 | of stic|kCoords |
|00005700| 74 6f 20 c2 0d 69 74 65 | 6d 20 33 20 6f 66 20 73 |to ..ite|m 3 of s|
|00005710| 74 69 63 6b 43 6f 6f 72 | 64 73 2c 20 69 74 65 6d |tickCoor|ds, item|
|00005720| 20 34 20 6f 66 20 73 74 | 69 63 6b 43 6f 6f 72 64 | 4 of st|ickCoord|
|00005730| 73 c2 0d 77 69 74 68 20 | 6f 70 74 69 6f 6e 6b 65 |s..with |optionke|
|00005740| 79 20 2d 2d 20 46 69 6c | 6c 20 74 68 65 20 6c 69 |y -- Fil|l the li|
|00005750| 6e 65 20 6f 72 20 62 6f | 72 64 65 72 2e 0d 0d 2d |ne or bo|rder...-|
|00005760| 2d 20 49 6d 70 72 6f 76 | 65 6d 65 6e 74 3f 20 67 |- Improv|ement? g|
|00005770| 69 76 65 20 69 74 20 61 | 20 66 61 74 20 68 65 61 |ive it a| fat hea|
|00005780| 64 0d 65 6e 64 20 64 72 | 61 67 53 74 69 63 6b 54 |d.end dr|agStickT|
|00005790| 6f 6f 6c 0d 0d 0d 6f 6e | 20 64 72 61 77 53 74 69 |ool...on| drawSti|
|000057a0| 63 6b 20 74 68 65 53 74 | 69 63 6b 0d 2d 2d 20 44 |ck theSt|ick.-- D|
|000057b0| 72 61 77 20 61 20 73 74 | 69 63 6b 2c 20 61 6e 64 |raw a st|ick, and|
|000057c0| 20 72 65 70 6f 73 69 74 | 69 6f 6e 20 69 74 73 20 | reposit|ion its |
|000057d0| 62 75 74 74 6f 6e 2e 0d | 2d 2d 20 54 68 69 73 20 |button..|-- This |
|000057e0| 72 65 61 6c 69 67 6e 73 | 20 74 68 65 20 73 74 69 |realigns| the sti|
|000057f0| 63 6b 20 69 6d 61 67 65 | 20 77 69 74 68 20 74 68 |ck image| with th|
|00005800| 65 20 64 61 74 61 20 69 | 6e 20 69 74 73 20 62 75 |e data i|n its bu|
|00005810| 74 74 6f 6e 2e 0d 0d 70 | 75 74 20 73 74 69 63 6b |tton...p|ut stick|
|00005820| 56 65 63 74 6f 72 28 74 | 68 65 53 74 69 63 6b 29 |Vector(t|heStick)|
|00005830| 20 69 6e 74 6f 20 73 74 | 69 63 6b 43 6f 6f 72 64 | into st|ickCoord|
|00005840| 73 0d 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 20 6f |s..set t|he loc o|
|00005850| 66 20 63 61 72 64 20 62 | 75 74 74 6f 6e 20 49 44 |f card b|utton ID|
|00005860| 20 74 68 65 53 74 69 63 | 6b 20 74 6f c2 20 2d 2d | theStic|k to. --|
|00005870| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 6f 66 20 74 | the but|ton of t|
|00005880| 68 65 20 73 74 69 63 6b | 0d 69 74 65 6d 20 33 20 |he stick|.item 3 |
|00005890| 6f 66 20 73 74 69 63 6b | 43 6f 6f 72 64 73 2c 20 |of stick|Coords, |
|000058a0| 69 74 65 6d 20 34 20 6f | 66 20 73 74 69 63 6b 43 |item 4 o|f stickC|
|000058b0| 6f 6f 72 64 73 0d 0d 2d | 2d 20 48 69 67 68 20 6c |oords..-|- High l|
|000058c0| 65 76 65 6c 20 63 6f 64 | 65 20 66 6f 6c 6c 6f 77 |evel cod|e follow|
|000058d0| 73 2e 20 20 57 65 20 63 | 6f 75 6c 64 20 64 6f 20 |s. We c|ould do |
|000058e0| 69 6e 6c 69 6e 65 20 65 | 78 70 61 6e 73 69 6f 6e |inline e|xpansion|
|000058f0| 20 6f 66 20 74 72 61 63 | 65 53 74 69 63 6b 2e 0d | of trac|eStick..|
|00005900| 74 72 61 63 65 53 74 69 | 63 6b 20 74 68 65 53 74 |traceSti|ck theSt|
|00005910| 69 63 6b 20 2d 2d 20 74 | 68 65 20 6c 69 6e 65 20 |ick -- t|he line |
|00005920| 6f 66 20 74 68 65 20 73 | 74 69 63 6b 0d 0d 2d 2d |of the s|tick..--|
|00005930| 20 4c 65 74 20 63 61 6c | 6c 65 72 20 63 68 6f 6f | Let cal|ler choo|
|00005940| 73 65 20 62 72 6f 77 73 | 65 20 74 6f 6f 6c 0d 65 |se brows|e tool.e|
|00005950| 6e 64 20 64 72 61 77 53 | 74 69 63 6b 0d 0d 0d 0d |nd drawS|tick....|
|00005960| 0d 6f 6e 20 65 72 61 73 | 65 53 74 69 63 6b 20 74 |.on eras|eStick t|
|00005970| 68 65 53 74 69 63 6b 0d | 2d 2d 20 45 72 61 73 65 |heStick.|-- Erase|
|00005980| 20 74 68 65 20 6c 69 6e | 65 20 70 61 72 74 20 6f | the lin|e part o|
|00005990| 66 20 74 68 65 20 73 74 | 69 63 6b 20 28 6e 6f 74 |f the st|ick (not|
|000059a0| 20 74 68 65 20 62 75 74 | 74 6f 6e 29 0d 2d 2d 20 | the but|ton).-- |
|000059b0| 4d 45 54 48 4f 44 20 54 | 48 41 54 20 44 4f 45 53 |METHOD T|HAT DOES|
|000059c0| 20 4e 4f 54 20 57 4f 52 | 4b 3a 20 64 72 61 77 2c | NOT WOR|K: draw,|
|000059d0| 20 74 68 65 6e 20 73 65 | 6c 65 63 74 20 6c 61 73 | then se|lect las|
|000059e0| 74 20 64 72 61 77 6e 2c | 20 74 68 65 6e 20 63 75 |t drawn,| then cu|
|000059f0| 74 0d 2d 2d 20 41 4e 4f | 54 48 45 52 20 4d 45 54 |t.-- ANO|THER MET|
|00005a00| 48 4f 44 20 54 48 41 54 | 20 57 4f 52 4b 53 3a 20 |HOD THAT| WORKS: |
|00005a10| 72 65 74 72 61 63 65 2c | 20 74 68 65 6e 20 69 6e |retrace,| then in|
|00005a20| 76 65 72 74 2e 0d 2d 2d | 20 42 75 74 20 6c 65 61 |vert..--| But lea|
|00005a30| 76 65 73 20 74 68 65 20 | 73 65 6c 65 63 74 20 74 |ves the |select t|
|00005a40| 6f 6f 6c 20 61 6e 64 20 | 69 73 20 73 6c 6f 77 65 |ool and |is slowe|
|00005a50| 72 2e 0d 0d 2d 2d 20 41 | 53 53 45 52 54 20 6e 6f |r...-- A|SSERT no|
|00005a60| 20 6e 65 65 64 20 74 6f | 20 73 61 76 65 20 74 68 | need to| save th|
|00005a70| 65 20 6f 6c 64 20 70 61 | 69 6e 74 20 63 68 6f 69 |e old pa|int choi|
|00005a80| 63 65 73 0d 73 65 74 44 | 72 61 77 69 6e 67 54 6f |ces.setD|rawingTo|
|00005a90| 6f 6c 73 20 74 68 65 53 | 74 69 63 6b 20 20 2d 2d |ols theS|tick --|
|00005aa0| 20 4e 45 57 0d 73 65 74 | 20 74 68 65 20 70 61 74 | NEW.set| the pat|
|00005ab0| 74 65 72 6e 20 74 6f 20 | 31 20 2d 2d 20 77 68 69 |tern to |1 -- whi|
|00005ac0| 74 65 2e 20 20 4f 76 65 | 72 72 69 64 65 20 6e 6f |te. Ove|rride no|
|00005ad0| 72 6d 61 6c 20 70 61 74 | 74 65 72 6e 20 66 6f 72 |rmal pat|tern for|
|00005ae0| 20 74 68 69 73 20 73 74 | 69 63 6b 2e 0d 64 72 61 | this st|ick..dra|
|00005af0| 67 53 74 69 63 6b 54 6f | 6f 6c 20 74 68 65 53 74 |gStickTo|ol theSt|
|00005b00| 69 63 6b 0d 2d 2d 20 41 | 53 53 45 52 54 20 6e 6f |ick.-- A|SSERT no|
|00005b10| 20 6e 65 65 64 20 74 6f | 20 72 65 73 74 6f 72 65 | need to| restore|
|00005b20| 20 74 68 65 20 66 6f 72 | 6d 65 72 20 70 61 69 6e | the for|mer pain|
|00005b30| 74 20 63 68 6f 69 63 65 | 73 0d 0d 2d 2d 20 43 61 |t choice|s..-- Ca|
|00005b40| 6c 6c 65 72 20 6d 75 73 | 74 20 63 68 6f 6f 73 65 |ller mus|t choose|
|00005b50| 20 62 72 6f 77 73 65 20 | 74 6f 6f 6c 20 61 66 74 | browse |tool aft|
|00005b60| 65 72 20 74 68 69 73 20 | 72 65 74 75 72 6e 73 0d |er this |returns.|
|00005b70| 65 6e 64 20 65 72 61 73 | 65 53 74 69 63 6b 0d 0d |end eras|eStick..|
|00005b80| 0d 6f 6e 20 65 72 61 73 | 65 53 74 69 63 6b 57 4f |.on eras|eStickWO|
|00005b90| 43 68 61 6e 67 69 6e 67 | 50 61 69 6e 74 20 74 68 |Changing|Paint th|
|00005ba0| 65 53 74 69 63 6b 0d 2d | 2d 20 53 61 6d 65 20 61 |eStick.-|- Same a|
|00005bb0| 73 20 65 72 61 73 65 53 | 74 69 63 6b 2c 20 62 75 |s eraseS|tick, bu|
|00005bc0| 74 20 6c 65 61 76 65 73 | 20 70 61 69 6e 74 20 63 |t leaves| paint c|
|00005bd0| 68 6f 69 63 65 73 20 61 | 6c 6f 6e 65 0d 73 61 76 |hoices a|lone.sav|
|00005be0| 65 55 73 65 72 50 61 69 | 6e 74 43 68 6f 69 63 65 |eUserPai|ntChoice|
|00005bf0| 73 0d 65 72 61 73 65 53 | 74 69 63 6b 20 74 68 65 |s.eraseS|tick the|
|00005c00| 53 74 69 63 6b 0d 72 65 | 73 74 6f 72 65 55 73 65 |Stick.re|storeUse|
|00005c10| 72 50 61 69 6e 74 43 68 | 6f 69 63 65 73 0d 65 6e |rPaintCh|oices.en|
|00005c20| 64 20 65 72 61 73 65 53 | 74 69 63 6b 57 4f 43 68 |d eraseS|tickWOCh|
|00005c30| 61 6e 67 69 6e 67 50 61 | 69 6e 74 0d 0d 0d 0d 2d |angingPa|int....-|
|00005c40| 2d 20 20 20 20 53 49 4e | 47 4c 45 20 53 54 49 43 |- SIN|GLE STIC|
|00005c50| 4b 20 4d 4f 56 45 4d 45 | 4e 54 20 4f 50 45 52 41 |K MOVEME|NT OPERA|
|00005c60| 54 49 4f 4e 53 0d 0d 6f | 6e 20 64 72 61 67 53 74 |TIONS..o|n dragSt|
|00005c70| 69 63 6b 20 74 68 65 53 | 74 69 63 6b 2c 20 78 49 |ick theS|tick, xI|
|00005c80| 6e 63 2c 20 79 49 6e 63 | 0d 2d 2d 20 4d 6f 76 65 |nc, yInc|.-- Move|
|00005c90| 20 73 74 69 63 6b 2c 20 | 72 65 74 61 69 6e 20 61 | stick, |retain a|
|00005ca0| 6e 67 6c 65 2c 20 61 6e | 64 20 6c 65 6e 67 74 68 |ngle, an|d length|
|00005cb0| 2e 0d 0d 2d 2d 20 75 6e | 6c 6f 63 6b 20 26 20 6c |...-- un|lock & l|
|00005cc0| 6f 63 6b 20 73 63 72 65 | 65 6e 20 69 73 20 62 65 |ock scre|en is be|
|00005cd0| 74 74 65 72 20 66 65 65 | 64 62 61 63 6b 3f 20 62 |tter fee|dback? b|
|00005ce0| 75 74 20 74 61 6b 65 73 | 20 6c 6f 6e 67 65 72 0d |ut takes| longer.|
|00005cf0| 73 65 74 20 74 68 65 20 | 63 75 72 73 6f 72 20 74 |set the |cursor t|
|00005d00| 6f 20 62 75 73 79 20 2d | 2d 20 66 65 65 64 62 61 |o busy -|- feedba|
|00005d10| 63 6b 0d 0d 2d 2d 20 48 | 49 47 48 20 4c 45 56 45 |ck..-- H|IGH LEVE|
|00005d20| 4c 20 43 4f 44 45 0d 2d | 2d 20 43 6f 75 6c 64 20 |L CODE.-|- Could |
|00005d30| 73 75 62 73 74 69 74 75 | 65 20 61 20 63 61 6c 6c |substitu|e a call|
|00005d40| 20 74 6f 20 69 6e 6c 69 | 6e 65 44 72 61 67 53 74 | to inli|neDragSt|
|00005d50| 69 63 6b 20 66 6f 72 20 | 61 6c 6c 20 6f 66 20 74 |ick for |all of t|
|00005d60| 68 69 73 2c 20 66 6f 72 | 20 73 70 65 65 64 2e 0d |his, for| speed..|
|00005d70| 65 72 61 73 65 53 74 69 | 63 6b 20 74 68 65 53 74 |eraseSti|ck theSt|
|00005d80| 69 63 6b 20 2d 2d 20 65 | 72 61 73 65 20 65 78 69 |ick -- e|rase exi|
|00005d90| 73 74 69 6e 67 20 73 74 | 69 63 6b 0d 0d 2d 2d 20 |sting st|ick..-- |
|00005da0| 43 68 61 6e 67 65 20 63 | 6f 6f 72 64 73 20 6f 66 |Change c|oords of|
|00005db0| 20 62 6f 74 68 20 73 74 | 61 72 74 20 61 6e 64 20 | both st|art and |
|00005dc0| 66 69 6e 69 73 68 2c 20 | 62 79 20 74 68 65 20 73 |finish, |by the s|
|00005dd0| 61 6d 65 20 61 6d 6f 75 | 6e 74 2e 0d 63 68 61 6e |ame amou|nt..chan|
|00005de0| 67 65 53 74 69 63 6b 43 | 6f 6f 72 64 73 20 74 68 |geStickC|oords th|
|00005df0| 65 53 74 69 63 6b 2c 78 | 49 6e 63 2c 79 49 6e 63 |eStick,x|Inc,yInc|
|00005e00| 2c 78 49 6e 63 2c 79 49 | 6e 63 0d 0d 2d 2d 20 55 |,xInc,yI|nc..-- U|
|00005e10| 73 65 20 74 68 65 20 74 | 6f 6f 6c 26 70 61 74 74 |se the t|ool&patt|
|00005e20| 65 72 6e 20 66 6f 72 20 | 74 68 69 73 20 73 74 69 |ern for |this sti|
|00005e30| 63 6b 20 61 6e 64 20 72 | 65 64 72 61 77 2e 0d 64 |ck and r|edraw..d|
|00005e40| 72 61 77 53 74 69 63 6b | 20 74 68 65 53 74 69 63 |rawStick| theStic|
|00005e50| 6b 20 20 20 2d 2d 20 44 | 72 61 77 20 61 67 61 69 |k -- D|raw agai|
|00005e60| 6e 2c 20 6d 6f 76 69 6e | 67 20 62 75 74 74 6f 6e |n, movin|g button|
|00005e70| 20 74 6f 6f 2e 0d 0d 2d | 2d 20 6c 65 74 20 63 61 | too...-|- let ca|
|00005e80| 6c 6c 65 72 20 63 68 6f | 6f 73 65 20 62 72 6f 77 |ller cho|ose brow|
|00005e90| 73 65 20 74 6f 6f 6c 0d | 65 6e 64 20 64 72 61 67 |se tool.|end drag|
|00005ea0| 53 74 69 63 6b 0d 0d 0d | 0d 6f 6e 20 69 6e 6c 69 |Stick...|.on inli|
|00005eb0| 6e 65 44 72 61 67 53 74 | 69 63 6b 0d 2d 2d 20 4e |neDragSt|ick.-- N|
|00005ec0| 45 45 44 53 20 57 4f 52 | 4b 2e 20 20 43 55 52 52 |EEDS WOR|K. CURR|
|00005ed0| 45 4e 54 4c 59 20 4e 4f | 4e 20 46 55 4e 43 54 49 |ENTLY NO|N FUNCTI|
|00005ee0| 4f 4e 41 4c 2e 0d 2d 2d | 20 53 61 6d 65 20 61 73 |ONAL..--| Same as|
|00005ef0| 20 64 72 61 67 53 74 69 | 63 6b 20 62 75 74 20 70 | dragSti|ck but p|
|00005f00| 72 6f 67 72 61 6d 20 74 | 72 61 6e 73 66 6f 72 6d |rogram t|ransform|
|00005f10| 61 74 69 6f 6e 20 64 6f | 6e 65 3a 0d 2d 2d 20 45 |ation do|ne:.-- E|
|00005f20| 78 70 61 6e 64 20 63 61 | 6c 6c 73 20 69 6e 6c 69 |xpand ca|lls inli|
|00005f30| 6e 65 20 66 6f 72 20 73 | 70 65 65 64 2e 0d 2d 2d |ne for s|peed..--|
|00005f40| 20 45 6c 69 6d 69 6e 61 | 74 65 20 72 65 64 75 6e | Elimina|te redun|
|00005f50| 64 61 6e 74 20 63 61 6c | 6c 73 20 74 6f 20 73 74 |dant cal|ls to st|
|00005f60| 69 63 6b 56 65 63 74 6f | 72 0d 70 75 74 20 73 74 |ickVecto|r.put st|
|00005f70| 69 63 6b 56 65 63 74 6f | 72 28 74 68 65 53 74 69 |ickVecto|r(theSti|
|00005f80| 63 6b 29 20 69 6e 74 6f | 20 73 74 69 63 6b 43 6f |ck) into| stickCo|
|00005f90| 6f 72 64 73 20 2d 2d 20 | 47 65 74 20 63 75 72 72 |ords -- |Get curr|
|00005fa0| 65 6e 74 20 64 61 74 61 | 0d 0d 2d 2d 20 64 6f 6e |ent data|..-- don|
|00005fb0| 27 74 20 63 68 65 63 6b | 20 66 6f 72 20 69 6e 76 |'t check| for inv|
|00005fc0| 69 73 69 62 69 6c 69 74 | 79 0d 2d 2d 20 41 73 73 |isibilit|y.-- Ass|
|00005fd0| 65 72 74 20 6c 69 6e 65 | 20 74 6f 6f 6c 20 69 73 |ert line| tool is|
|00005fe0| 20 63 68 6f 73 65 6e 0d | 2d 2d 20 41 73 73 65 72 | chosen.|-- Asser|
|00005ff0| 74 20 74 68 65 20 70 61 | 74 74 65 72 6e 20 69 73 |t the pa|ttern is|
|00006000| 20 31 20 2d 2d 20 64 72 | 61 77 20 77 68 69 74 65 | 1 -- dr|aw white|
|00006010| 0d 64 72 61 67 20 66 72 | 6f 6d 20 c2 20 20 20 2d |.drag fr|om . -|
|00006020| 2d 20 64 72 61 77 20 74 | 68 65 20 6c 69 6e 65 0d |- draw t|he line.|
|00006030| 69 74 65 6d 20 31 20 6f | 66 20 73 74 69 63 6b 43 |item 1 o|f stickC|
|00006040| 6f 6f 72 64 73 2c 20 69 | 74 65 6d 20 32 20 6f 66 |oords, i|tem 2 of|
|00006050| 20 73 74 69 63 6b 43 6f | 6f 72 64 73 20 74 6f 20 | stickCo|ords to |
|00006060| c2 0d 69 74 65 6d 20 33 | 20 6f 66 20 73 74 69 63 |..item 3| of stic|
|00006070| 6b 43 6f 6f 72 64 73 2c | 20 69 74 65 6d 20 34 20 |kCoords,| item 4 |
|00006080| 6f 66 20 73 74 69 63 6b | 43 6f 6f 72 64 73 20 c2 |of stick|Coords .|
|00006090| 0d 77 69 74 68 20 6f 70 | 74 69 6f 6e 6b 65 79 20 |.with op|tionkey |
|000060a0| 2d 2d 20 6f 70 74 69 6f | 6e 73 20 6d 65 61 6e 73 |-- optio|ns means|
|000060b0| 20 64 72 61 77 20 77 69 | 74 68 20 70 61 74 74 65 | draw wi|th patte|
|000060c0| 72 6e 0d 2d 2d 20 44 6f | 20 6e 6f 74 20 6e 65 65 |rn.-- Do| not nee|
|000060d0| 64 20 74 6f 20 73 65 74 | 20 74 68 65 20 70 61 74 |d to set| the pat|
|000060e0| 74 65 72 6e 20 73 69 6e | 63 65 20 6c 69 6e 65 20 |tern sin|ce line |
|000060f0| 69 73 20 61 6c 77 61 79 | 73 20 62 6c 61 63 6b 2e |is alway|s black.|
|00006100| 0d 2d 2d 20 57 65 20 6d | 69 67 68 74 20 6e 65 65 |.-- We m|ight nee|
|00006110| 64 20 74 6f 20 72 65 73 | 74 6f 72 65 20 74 68 65 |d to res|tore the|
|00006120| 20 75 73 65 72 27 73 20 | 70 61 74 74 65 72 6e 2e | user's |pattern.|
|00006130| 0d 2d 2d 20 73 65 74 20 | 74 68 65 20 70 61 74 74 |.-- set |the patt|
|00006140| 65 72 6e 20 74 6f 20 31 | 32 20 2d 2d 20 62 6c 61 |ern to 1|2 -- bla|
|00006150| 63 6b 0d 0d 61 64 64 20 | 78 49 6e 63 20 74 6f 20 |ck..add |xInc to |
|00006160| 69 74 65 6d 20 31 20 6f | 66 20 73 74 69 63 6b 43 |item 1 o|f stickC|
|00006170| 6f 6f 72 64 73 20 2d 2d | 20 55 70 64 61 74 65 20 |oords --| Update |
|00006180| 64 61 74 61 0d 61 64 64 | 20 79 49 6e 63 20 74 6f |data.add| yInc to|
|00006190| 20 69 74 65 6d 20 32 20 | 6f 66 20 73 74 69 63 6b | item 2 |of stick|
|000061a0| 43 6f 6f 72 64 73 0d 61 | 64 64 20 78 49 6e 63 20 |Coords.a|dd xInc |
|000061b0| 74 6f 20 69 74 65 6d 20 | 33 20 6f 66 20 73 74 69 |to item |3 of sti|
|000061c0| 63 6b 43 6f 6f 72 64 73 | 0d 61 64 64 20 79 49 6e |ckCoords|.add yIn|
|000061d0| 63 20 74 6f 20 69 74 65 | 6d 20 34 20 6f 66 20 73 |c to ite|m 4 of s|
|000061e0| 74 69 63 6b 43 6f 6f 72 | 64 73 0d 73 74 6f 72 65 |tickCoor|ds.store|
|000061f0| 44 61 74 61 20 74 68 65 | 53 74 69 63 6b 2c 20 73 |Data the|Stick, s|
|00006200| 74 69 63 6b 43 6f 6f 72 | 64 73 0d 0d 73 65 74 20 |tickCoor|ds..set |
|00006210| 74 68 65 20 6c 6f 63 20 | 6f 66 20 63 61 72 64 20 |the loc |of card |
|00006220| 62 75 74 74 6f 6e 20 49 | 44 20 74 68 65 53 74 69 |button I|D theSti|
|00006230| 63 6b 20 74 6f c2 20 2d | 2d 20 74 68 65 20 62 75 |ck to. -|- the bu|
|00006240| 74 74 6f 6e 20 6f 66 20 | 74 68 65 20 73 74 69 63 |tton of |the stic|
|00006250| 6b 0d 69 74 65 6d 20 33 | 20 6f 66 20 73 74 69 63 |k.item 3| of stic|
|00006260| 6b 43 6f 6f 72 64 73 2c | 20 69 74 65 6d 20 34 20 |kCoords,| item 4 |
|00006270| 6f 66 20 73 74 69 63 6b | 43 6f 6f 72 64 73 0d 0d |of stick|Coords..|
|00006280| 69 66 20 69 74 65 6d 20 | 35 20 6f 66 20 73 74 69 |if item |5 of sti|
|00006290| 63 6b 43 6f 6f 72 64 73 | 20 3d 20 22 74 72 75 65 |ckCoords| = "true|
|000062a0| 22 20 74 68 65 6e 0d 64 | 72 61 67 20 66 72 6f 6d |" then.d|rag from|
|000062b0| 20 c2 20 20 20 2d 2d 20 | 64 72 61 77 20 74 68 65 | . -- |draw the|
|000062c0| 20 6c 69 6e 65 0d 69 74 | 65 6d 20 31 20 6f 66 20 | line.it|em 1 of |
|000062d0| 73 74 69 63 6b 43 6f 6f | 72 64 73 2c 20 69 74 65 |stickCoo|rds, ite|
|000062e0| 6d 20 32 20 6f 66 20 73 | 74 69 63 6b 43 6f 6f 72 |m 2 of s|tickCoor|
|000062f0| 64 73 20 74 6f 20 c2 0d | 69 74 65 6d 20 33 20 6f |ds to ..|item 3 o|
|00006300| 66 20 73 74 69 63 6b 43 | 6f 6f 72 64 73 2c 20 69 |f stickC|oords, i|
|00006310| 74 65 6d 20 34 20 6f 66 | 20 73 74 69 63 6b 43 6f |tem 4 of| stickCo|
|00006320| 6f 72 64 73 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |ords.end| if.end |
|00006330| 69 6e 6c 69 6e 65 44 72 | 61 67 53 74 69 63 6b 0d |inlineDr|agStick.|
|00006340| 0d 0d 0d 2d 2d 20 20 20 | 20 20 20 20 20 20 53 54 |...-- | ST|
|00006350| 49 43 4b 20 53 57 49 4e | 47 49 4e 47 20 28 4f 4e |ICK SWIN|GING (ON|
|00006360| 45 20 45 4e 44 20 53 54 | 41 54 49 4f 4e 41 52 59 |E END ST|ATIONARY|
|00006370| 29 0d 0d 2d 2d 20 73 77 | 69 6e 67 53 74 69 63 6b |)..-- sw|ingStick|
|00006380| 20 61 63 74 75 61 6c 6c | 79 20 77 6f 75 6c 64 20 | actuall|y would |
|00006390| 6d 6f 76 65 20 62 6f 74 | 68 20 65 6e 64 73 2c 20 |move bot|h ends, |
|000063a0| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 70 61 72 |dependin|g on par|
|000063b0| 61 6d 65 74 65 72 0d 0d | 6f 6e 20 73 77 69 6e 67 |ameter..|on swing|
|000063c0| 53 74 69 63 6b 20 74 68 | 65 53 74 69 63 6b 2c 20 |Stick th|eStick, |
|000063d0| 78 49 6e 63 2c 20 79 49 | 6e 63 2c 20 78 32 49 6e |xInc, yI|nc, x2In|
|000063e0| 63 2c 20 79 32 49 6e 63 | 0d 2d 2d 20 52 6f 74 61 |c, y2Inc|.-- Rota|
|000063f0| 74 65 2c 20 61 6e 64 20 | 63 68 61 6e 67 65 20 6c |te, and |change l|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.